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 reserved bits in chunks #109

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Ignore reserved bits in chunks #109

merged 3 commits into from
Sep 18, 2024

Conversation

Juliapixel
Copy link
Contributor

the WebP container specification states that the reserved bits on ALPH, VP8X and ANMF chunks MUST be ignored by readers, this PR fixes that, removes the superfluous error variant and clarifies the error returned when an invalid alpha preprocessing info flag is encountered.

the information was taken from here: https://developers.google.com/speed/webp/docs/riff_container#extended_file_format

@fintelia
Copy link
Contributor

Thanks for this PR!

I was curious, and it turns out that that spec requirement was added after the relevant code in this crate already been written.

@kornelski kornelski merged commit c29d6d4 into image-rs:main Sep 18, 2024
7 checks passed
@kornelski
Copy link
Contributor

Thank you

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.

3 participants