Hello, guys! I'm using canvas imagecache action and I get this error for some gifs

warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 65 out of range in imagecache_actions/watermark.inc on line 50.

I assume all needed is some kind of check for color index before invoking imagecolorsforindex()
could someone help me with that?
I have checked php.net and found this comment

adspeed.com 23-Aug-2005 11:05
To correct m4551 at abasoft dot it example:
ImageTrueColorToPalette($im,1,$t);
might give less colors than $t, so the for loop should call "$i

image uploaded in attachments
Thanks in advance!

CommentFileSizeAuthor
#1 imagecache-actions-watermark.patch840 byteschingis

Comments

chingis’s picture

StatusFileSize
new840 bytes

patch attached

chingis’s picture

Status: Active » Needs review
fietserwin’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

D6 EOL. This module's D6 issues already haven't received any attention for over a year. Closing them all unconditionally now.