We have moved to Github. Please open tickets there.

Opened 3 years ago

Last modified 2 years ago

#2382 new Enhancement

Add transparency and other image type support to get_resized_image_from_existing_file()

Reported by: hellekin Owned by:
Priority: normal Milestone: Elgg 1.8.x
Component: Core Version: 1.7
Severity: minor Keywords: avatar icon transparency alpha opacity
Cc: brettp Difficulty: easy

Description

This patch to Elgg core 1.7.1 adds transparency support for user avatars.

  • Not tested with GIF
  • Not tested with MSIE

Apply the patch

    cd /path/to/elgg/
    unzip /path/to/filestore.php-transparency.patch.zip
    patch -p1 < filestore.php.patch

Attachments (2)

filestore.php-transparency.patch.zip (855 bytes) - added by hellekin 3 years ago.
Patch to engine/lib/filestore.php for avatar transparency support.
filestore.php.patch (1.5 KB) - added by brettp 3 years ago.
Same file, unzipped so we can read it.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by hellekin

Patch to engine/lib/filestore.php for avatar transparency support.

Changed 3 years ago by brettp

Same file, unzipped so we can read it.

comment:1 Changed 3 years ago by brettp

  • Difficulty set to easy
  • Summary changed from [PATCH] Add transparency support for avatars to Add transparency and other image type support to get_resized_image_from_existing_file()

comment:2 Changed 2 years ago by cash

  • Milestone changed from Elgg 1.8 to Elgg 1.8.1

Pushing back to 1.8.1 - This can be done the same time as we change the icondirect methods to go through a central script rather than having each plugin include its own version of this code.

Note: See TracTickets for help on using tickets.