From: guido at comlog dot nl Operating system: W2K PHP version: 4.3.3 PHP Bug Type: GD related Bug description: Transparency is not working
Description: ------------ Transparency is not working on PNG files on W2K. I've tried a few background colors, different formats, but can't get it working. Reproduce code: --------------- <?php // Example demonstrating a transparent truecolor png bug // fixed by the time of gd 2.0.11, but not fixed in php's // bundled gd. header("Content-type: image/png"); $image = imageCreateTruecolor(640, 100); $transparent = imageColorAllocate($image, 0, 0, 0); $red = imageColorAllocate($image, 255, 50, 50); imageColorTransparent($image, $transparent); imageFilledRectangle($image, 0, 0, 640-1, 100-1, $transparent); imageString($image, 3, 0, 0, "If the background is black, and you aren't on win32 IE (buggy png code), this is a bug.", $red); imagePng($image); ?> Expected result: ---------------- The code should produce a white PNG image with red text. Actual result: -------------- The code produces a black PNG image with red text. The background is NOT transparent. -- Edit bug report at http://bugs.php.net/?id=25540&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25540&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25540&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25540&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25540&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25540&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25540&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25540&r=support Expected behavior: http://bugs.php.net/fix.php?id=25540&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25540&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25540&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25540&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25540&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25540&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25540&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25540&r=gnused