#50269 [NEW]: getting and setting (new) transparant color error

From: Date: Mon, 23 Nov 2009 10:39:52 +0000
Subject: #50269 [NEW]: getting and setting (new) transparant color error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144950@lists.php.net to get a copy of this message
From: ericbruggema at hotmail dot com Operating system: WinXP Sp3 dutch PHP version: 5.3SVN-2009-11-23 (SVN) PHP Bug Type: GD related Bug description: getting and setting (new) transparant color error Description: ------------ The problem is that when reading a transparant color from an existing image in some cases can't be used to set the transparant color for new images. Reproduce code: --------------- $im = imagecreatefromgif("image.gif"); $trnprt_indx = imagecolortransparent($im); $trnprt_color = @imagecolorsforindex($im, $trnprt_indx); // error line Expected result: ---------------- imagecolorsforindex() [<a href='function.imagecolorsforindex'>function.imagecolorsforindex</a>]: Color index 251 out of range -- Edit bug report at http://bugs.php.net/?id=50269&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50269&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50269&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50269&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50269&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50269&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50269&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50269&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50269&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50269&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50269&r=support Expected behavior: http://bugs.php.net/fix.php?id=50269&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50269&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50269&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50269&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50269&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50269&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50269&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50269&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50269&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50269&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50269&r=mysqlcfg

« previous php.bugs (#144950) next »