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

Fix AVIF identification #63

Merged
merged 2 commits into from
Sep 6, 2021
Merged

Fix AVIF identification #63

merged 2 commits into from
Sep 6, 2021

Conversation

brian-kephart
Copy link
Contributor

@brian-kephart brian-kephart commented Sep 2, 2021

Fixes #62
Currently AVIF images are misidentified as 'video/quicktime' because:

  1. The quicktime format matcher also matches AVIF files and...
  2. The quicktime format is prioritized above AVIF, so the incorrect matcher is checked before the correct one.

This is fixed by adding a custom AVIF definition, though there's nothing custom about it. It's the same as the generated definition, but the custom one is prioritized.

There is also a fixture added for AVIF images. If you check out the "Add AVIF fixture" commit and run the tests, you will see a test failure showing the problem that this PR is intended to fix.

@kaspth
Copy link
Contributor

kaspth commented Sep 6, 2021

Thanks!

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.

AVIF image variants are assigned the wrong :content_type
2 participants