From: michel at breggen dot nl
Operating system: RedHat Linux
PHP version: Irrelevant
PHP Bug Type: Feature/Change Request
Bug description: imagecreatetruecolor black background makes alpha transparancy
unusable
Description:
------------
when creating a new truecolor image, the image gets set with a black
background. This makes it unusable to blend alpha transparant png's onto
it (for creating transparant thumbnails for example). Normally you would
have a blank (all transparant) image when creating a new image because no
data has been added to it.
Reproduce code:
---------------
$img = imagecreatetruecolor(50,50);
header ("Content-type: image/x-png");
imagepng($img);
imagedestroy($img);
Expected result:
----------------
a transparant 50x50 png image.
Actual result:
--------------
a black 50x50 png image
--
Edit bug report at http://bugs.php.net/?id=26928&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26928&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26928&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26928&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26928&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26928&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26928&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26928&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26928&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26928&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26928&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26928&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26928&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26928&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26928&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26928&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26928&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26928&r=float