From: jukkaho at mail dot student dot oulu dot fi Operating system: Linux PHP version: 4.3.0 PHP Bug Type: GD related Bug description: There's no way to output transparent truecolor PNG images
Alpha channel in a truecolor image is only sent when im->saveAlphaFlag is true. It is by default set to false in gdImageCreateTrueColor() and there are no callers to gdImageSaveAlpha() to set it to any other value. I tested a hack where I call gdImageSaveAlpha() in PHP_FUNCTION(imagealphablending) and it worked mostly as expected. I'd guess that another function call is needed unless is it made to default behaviour and calls are embedded in PHP_FUNCTION(imagepng) etc. Only weird things that occured were that for some reason, target image alpha channel is discarded when blending other images to it. For example when blending fully transparent part over another fully transparent part resulted in a white area. White comes from destination image that's transparent too. Maybe I should open another bug for it? -- Edit bug report at http://bugs.php.net/?id=22323&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22323&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22323&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22323&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22323&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22323&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22323&r=support Expected behavior: http://bugs.php.net/fix.php?id=22323&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22323&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22323&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22323&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22323&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22323&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22323&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22323&r=gnused