Posted by Alex72RM on February 16, 2009 at 10:34am
| Project: | ImageAPI |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I have this error in log, php section.
It comes with a .jpg image.
How to solve it?
Thanks,
Alessandro
Comments
#1
I have the same error with 6.x-1.6 version.
#2
confirm 6.x-1.6 issue and subscribe...
#3
Same here on PHP 5.2.10.
#4
Subscribing:
warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 255 out of range in /home/tit.nl/public_html/drupal6/sites/all/modules/imageapi/imageapi_gd.module on line 251.
ImageAPI 6.x-1.6
#5
subscribe
warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 7 out of range in /home/zzz/htdocs/sites/all/modules/imageapi/imageapi_gd.module on line 251.
ImageAPI 6.x-1.6
this warning come when i create new image advertisement (module ad) *.GIF
#6
I encountered the same error with 5.x-1.5:
imagecolorsforindex() [<a href='function.imagecolorsforindex'>function.imagecolorsforindex</a>]: Color index 255 out of range in C:\Apache2\htdocs\d5\sites\all\modules\imageapi\imageapi_gd.module on line 251.I was using imagecache to display images from a view, but it turns out those images didn't exist in my local files directory. When I pulled them in, the error disappeared, so not sure if this is a bug or not.
#7
Same error, same version. Any news on this?
Marcus
#8
Subscribing
#9
subsribing
#10
I'm also seeing this in v6.x-1.6, PHP 5.2.6.
#11
Same Here! Subscribing..
#12
Subscribing!
Same issue that OP experienced in Feb, 2009
Edit to add: In my case it only occurrs when I apply an imagecache preset to images imported into ddblock "News Item" content, and I am just curious if this is the case with any of the other posters here?
With no acknowledgement of this issue in over a year, I suspect we may need to work this one out ourselves.
#13
ppblaauw, the developer / maintainer of the Dynamic Display Block module(http://drupal.org/project/ddblock), kindly looked over the Image API error (http://drupal.org/node/715502)for me and found that line 251 pertains to .gif images.
The workaround for me was to convert the .gif to .jpg (and I suspect .png would work as well). Of course this workaround would not be a good solution if you are using animated .gifs; however it's something, and seeing how this issue has persisted w/o acknowledgement for over a year in this queue, I figured the workaround was better than nothing!
Thanks ppblaauw! :)
#14
The same problem has been handled here - it seems it has to with animated gifs: http://drupal.org/node/224163 - I "shut it up" by putting an @ in front of the function call on line 251.
#15
subscribing - seeing this error and I don't think our GIF files are animated. It's actually
Color index 254 out of range in /home/content/...
for us.
#16
Animated gif's.
Subscribing.
#17
Subscribing
Same error only on .gif
#18
I'm seeing the same behavior. A quite easy fix seems to be to check that the returned transparency color index is within the total number of colors in the image, and drop transparency otherwise.
#19
#18 worked for me - thanks
#20
#18 did the job for me too - thanks
#21
Sorry, I have the same problem, How must i install the patch?
thanks a lot!
#22
i have the same problem with 6.x-1.8
I get this error when i try to upload a gif file.
The gif is not animated and also it isn't transparent.
the patch from #18 fixes this issue for me.
#23
thank you intyms
#24
thx, same problem. solved by #18
#25
Patch worked for me as well...D6.1.9 on ImageAPI 6.x-1.8...animated GIF.
#26
Thanks, committed to DRUPAL-6--1.
#27
Automatically closed -- issue fixed for 2 weeks with no activity.
#28
can reproduce (non-animated gif).
that patch apparently never reached 7.x
may be moved to core.