when trying to upload some non-transparent gifs i get this error

so would the correct fix be to change the conditional on line 106 of image.gd.inc

if ($transparency_index >= 0 ) {
to
if ($transparency_index >= 0 && $transparency_index < 255) {

cheers

CommentFileSizeAuthor
#7 g_logo.gif4 KBdkinzer
#1 buggy_image.gif3.17 KB3oheme

Comments

3oheme’s picture

StatusFileSize
new3.17 KB

That warning appears also if transparency index is below 255, you can check it with this gif file.

pribeh’s picture

I'm getting the same with transparent gifs. What's the deal with this?

cjd400’s picture

so where do I find image.gd.inc?

bipo’s picture

Have you set the correct "input type" in Content/Image?
This must be of course "image format" and not "filtered html" or "full html"

dollar_dad’s picture

includes/

And so far the hack has worked perfectly but I'll let you know if I have any problems

monotaga’s picture

subscribe

dkinzer’s picture

StatusFileSize
new4 KB

warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 65 out of range in image.gd.module on line 251

sbonde’s picture

Version: 6.4 » 6.22

I got the following error when trying to upload a gif image in a newly created CCK imagefield:
warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 63 out of range in image.gd.inc on line 107.

Not sure if it's realted to your problems but ImageAPI solved the problem on my site.

j4’s picture

Hi,

I am having the same error.Could you please explain what you meant when you said imageapi solved your problem? Thank you.

Jaya

sbonde’s picture

Sorry for the late reply.

Now it has been so long ago I am not sure what I did, but judging from my reply I think I just installed ImageAPI module and that solved the problem.
I manage a lot of Drupal sites so couldn't recall what site I experienced this problem on. :-(

wojtha’s picture

Status: Active » Closed (duplicate)