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

AccessKit Disable GIFs: Parse; disable animated WebP images #1402

Closed

Conversation

marcustyphoon
Copy link
Collaborator

Description

This applies Disable GIFs to animated WebP images by fetching their binary data and finding the ANIM chunk.

Honestly, this was just the offshoot of a failed attempt to parse the WebP binary myself (https://developers.google.com/speed/webp/docs/riff_container). I totally can do it, and if the necessary information was in the bit flags in the VP8X header I would, but that bit seems to be set to 1 even on non-animated images and the ANIM header's position has to be searched for, and it just winds up as way too much handwritten code to document succinctly as a one-off. So this just vendors a library. Booooorring.

Resolves #1401.

Testing steps

@marcustyphoon marcustyphoon changed the title AccessKit Disable GIFs: Disable animated WebP images AccessKit Disable GIFs: Parse; disable animated WebP images Apr 29, 2024
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.

AccessKit: Pause wepb
1 participant