PHP throws a "Warning: imagecolorsforindex(): Color index ... out of range in..." if the index returned by imagecolortransparent() is larger than the pallet size of the image in question. This can (and does) happen with GIF images, for example created by Photoshop.
PHP throws a "Warning: imagecolorsforindex(): Color index ... out of range in..." if the index returned by imagecolortransparent() is larger than the pallet size of the image in question. This can (and does) happen with GIF images, for example created by Photoshop.
I will send a PR to 1.x.