Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michael-e opened this issue Feb 28, 2019 · 0 comments
Open

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

michael-e opened this issue Feb 28, 2019 · 0 comments

Comments

@michael-e
Copy link
Member

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.

michael-e added a commit to michael-e/jit_image_manipulation that referenced this issue Feb 28, 2019
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.

See https://stackoverflow.com/a/3898007

Fixes symphonycms#165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant