what should i do on this error?
warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 255 out of range in /sites/all/modules/imageapi/imageapi_gd.module on line 139.

thanks in advance
cloe

Comments

grawat’s picture

I am getting the same error, just saw it today. would appreciate any help.

cloe123’s picture

it is still my problem...i dont know how i will fixed it.
hope someone will response..

thanks

manjeet’s picture

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

in includes/image.inc

AND

Replace
if ($transparent >= 0) {
with
if ($transparent >= 0 && $transparent < 255) {

in imageapi_gd.module

lindsayo’s picture

This is a core hack?

It would be nice to come up with something more Drupal-ly to fix this.

hoppurr’s picture

no it is a module hack, not a core hack, imageapi and image are addon modules not core modules