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

Ignore global background color if out-of-bounds #49

Merged
merged 1 commit into from
Sep 29, 2018
Merged

Ignore global background color if out-of-bounds #49

merged 1 commit into from
Sep 29, 2018

Conversation

moulins
Copy link

@moulins moulins commented Sep 28, 2018

This is a fix for image-rs/image#816.

Some GIF files use an invalid background color if the background color is never used. To support this, this change ignores the background color if its index is invalid.

An alternative would be to return an error, but this would break files which are correctly decoded today.

@bvssvni
Copy link
Contributor

bvssvni commented Sep 29, 2018

Thanks!

@bvssvni bvssvni merged commit 47cee32 into image-rs:master Sep 29, 2018
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

Successfully merging this pull request may close these issues.

2 participants