|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-23 10:55 UTC] pajoye@php.net
[2009-11-23 10:57 UTC] ericbruggema at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 19:00:01 2025 UTC |
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