symphonycms / jit_image_manipulation

Just in Time Image Manipulation for Symphony CMS
http://symphonyextensions.com/extensions/jit_image_manipulation/
Other
25 stars 42 forks source link

[1.x] Color index out of range warning #165

Open michael-e opened 5 years ago

michael-e commented 5 years ago

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.