[PHP-BUG] Bug #64815 [NEW]: Rendering some image broken
From: adrianbjones at gmail dot com Operating system: Debian PHP version: 5.4.15 Package: GD related Bug Type: Bug Bug description:Rendering some image broken Description: I am using PEAR Image_Canvas to dynamically generate some images. The same script has worked from PHP 4.x all the way through to 5.4.14. Basically the script layers several transparent png files together to make a combined image I just upgraded to 5.4.15 and the images are no longing rendering properly. Certain elements are replaced by solid rectangles and others have a variety of color changes. It seems like it might be a transparency issue with PNG files, but not sure. Reverting to 5.4.14 instantly fixes the images. -- Edit bug report at https://bugs.php.net/bug.php?id=64815&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64815&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64815&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64815&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64815&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64815&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64815&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64815&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64815&r=oldversion Not developer issue:https://bugs.php.net/fix.php?id=64815&r=support Expected behavior: https://bugs.php.net/fix.php?id=64815&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64815&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64815&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64815&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64815&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64815&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64815&r=isapi Install GNU Sed:https://bugs.php.net/fix.php?id=64815&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64815&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64815&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64815&r=mysqlcfg
Bug #64815 [Fbk->Opn]: Rendering some image broken
Edit report at https://bugs.php.net/bug.php?id=64815&edit=1 ID: 64815 User updated by:adrianbjones at gmail dot com Reported by:adrianbjones at gmail dot com Summary:Rendering some image broken -Status: Feedback +Status: Open Type: Bug Package:GD related Operating System: Debian PHP Version:5.4.15 Block user comment: N Private report: N New Comment: OK, finally figured out the issue with this, Sorry, it's not a PHP bug at all. There is a regex in PEAR Image_Canvas that looks for the version of GD. The new version of GD 2.1.0 was being matched by a poorly written regex that looked for version 1.x first. Image_Canvas only uses ImageCreateTrueColor if GD is version 2.x, hence the color/transparency issues. Anyway, all sorted now - I will file a bug with Image_Canvas, even though it is no longer being maintained. Sorry to trouble you! Previous Comments: [2013-05-16 19:44:52] ahar...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. A reproduction script using GD directly would be extremely helpful, along with the configure lines used both in PHP 5.4.14 and 5.4.15 and any difference in libpng versions, please. [2013-05-10 18:07:37] adrianbjones at gmail dot com Description: I am using PEAR Image_Canvas to dynamically generate some images. The same script has worked from PHP 4.x all the way through to 5.4.14. Basically the script layers several transparent png files together to make a combined image I just upgraded to 5.4.15 and the images are no longing rendering properly. Certain elements are replaced by solid rectangles and others have a variety of color changes. It seems like it might be a transparency issue with PNG files, but not sure. Reverting to 5.4.14 instantly fixes the images. -- Edit this bug report at https://bugs.php.net/bug.php?id=64815&edit=1
Bug #64815 [Opn->Csd]: Rendering some image broken
Edit report at https://bugs.php.net/bug.php?id=64815&edit=1 ID: 64815 User updated by:adrianbjones at gmail dot com Reported by:adrianbjones at gmail dot com Summary:Rendering some image broken -Status: Open +Status: Closed Type: Bug Package:GD related Operating System: Debian PHP Version:5.4.15 Block user comment: N Private report: N New Comment: Closing this Previous Comments: [2013-05-21 22:49:25] adrianbjones at gmail dot com OK, finally figured out the issue with this, Sorry, it's not a PHP bug at all. There is a regex in PEAR Image_Canvas that looks for the version of GD. The new version of GD 2.1.0 was being matched by a poorly written regex that looked for version 1.x first. Image_Canvas only uses ImageCreateTrueColor if GD is version 2.x, hence the color/transparency issues. Anyway, all sorted now - I will file a bug with Image_Canvas, even though it is no longer being maintained. Sorry to trouble you! [2013-05-16 19:44:52] ahar...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. A reproduction script using GD directly would be extremely helpful, along with the configure lines used both in PHP 5.4.14 and 5.4.15 and any difference in libpng versions, please. [2013-05-10 18:07:37] adrianbjones at gmail dot com Description: I am using PEAR Image_Canvas to dynamically generate some images. The same script has worked from PHP 4.x all the way through to 5.4.14. Basically the script layers several transparent png files together to make a combined image I just upgraded to 5.4.15 and the images are no longing rendering properly. Certain elements are replaced by solid rectangles and others have a variety of color changes. It seems like it might be a transparency issue with PNG files, but not sure. Reverting to 5.4.14 instantly fixes the images. -- Edit this bug report at https://bugs.php.net/bug.php?id=64815&edit=1