Bug #19379 [Opn]: Missing color index check in _createImage()
| From: | mick at deafzone dot ch | Date: | Tue, 10 Apr 2012 11:12:09 +0000 |
| Subject: | Bug #19379 [Opn]: Missing color index check in _createImage() | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8547@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19379&edit=1
ID: 19379
Updated by: mick@deafzone.ch
Reported By: mick at deafzone dot ch
Summary: Missing color index check in _createImage()
Status: Open
Type: Bug
Package: Image_Transform
Operating System: Apache 2.2
Package Version: 0.9.5
PHP Version: 5.2.6
Roadmap Versions:
New Comment:
Right, related to this request but the problem hasn't been solved
really. You should reopen the ticket.
Previous Comments:
------------------------------------------------------------------------
[2012-04-10 12:05:35] doconnor
Related to
Request #16069 ?
------------------------------------------------------------------------
[2012-04-10 09:56:50] hartkore
Description:
------------
Hi there
I'm seeing this PHP error coming from class Image_Transform_Driver_GD:
Warning: imagecolorsforindex() [function.imagecolorsforindex]: Color
index 255
It's thrown at line 602. And I can guess why. Some GIF images can have a
transparency index higher than 255, especially when animated.
So I recommend you to obtain the palette size first with
imagecolorstotal(), here a good example:
http://stackoverflow.com/questions/3874533/what-could-cause-a-color-index-out-of-range-error-for-imagecolorsforindex
Thanks for the bug fix, cheers :)
Michael H
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19379&edit=1