Ticket #340: Image Upload Columns configured to convert to png not preserving transparency in original 24-bit pngs
| Reporter: | vena | Type: | defect | Opened: | 10 months ago | Status: | closed |
|---|---|---|---|---|---|---|---|
| Assigned to: | wbond | Priority: | major | Modified: | 10 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
10/26/09 17:08:21 changed by vena
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);
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.
10/27/09 13:34:47 changed by wbond
- status changed from assigned to closed.
- resolution set to fixed.
This is fixed in r725
10/27/09 13:48:11 changed by vena
super quick resolution - thanks, will!

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.