Ticket #340: Image Upload Columns configured to convert to png not preserving transparency in original 24-bit pngs

Reporter: vena Type: defect Opened: 5 months ago Status: closed
Assigned to: wbond Priority: major Modified: 5 months ago Resolution: fixed

In fActiveRecord objects containing columns configured with fORMFile::configureImageUploadColumn() and $file_type set to 'png', transparency is not preserved in the resulting file when the originally uploaded file is a 24-bit png with transparency.

Attachments

History

Reply 10/26/09 17:08:21 changed by vena

stating the obvious: if file_type is null and no conversion is done, pngs retain their alpha channel. also seems to retain alpha channel even if an addFImageMethodCall is set to resize the image, though that may be because the image was already at the dimensions i specified and no resize was done.

Reply 10/26/09 17:15:49 changed by wbond

  • status changed from new to assigned.

Do you have ImageMagick installed, or do you have GD? If you aren't sure, you can add the following code to line 255 of fImage:

fCore::expose(self::$processor);

Reply 10/26/09 18:15:55 changed by vena

GD

PHP 5.2.11 on FreeBSD 7.2-RELEASE, gd version reports "bundled (2.0.34 compatible)" with PNG support enabled.

Reply 10/27/09 13:34:47 changed by wbond

  • status changed from assigned to closed.
  • resolution set to fixed.

This is fixed in r725

Reply 10/27/09 13:48:11 changed by vena

super quick resolution - thanks, will!

Edit the Ticket



please register or log in to allow for editing your comment

Action