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

Add AVIF MIME type support to mimetype definitions #15739

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

LoganBooker
Copy link

Currently AVIF images (added in cde35be) will download, rather than open, as the default behaviour. Turns out we need to add it as a valid MIME type so it acts like other image types.

Description

Simple change to ui.py to add image/avif as a valid MIME type, like image/webp currently is. Without this, AVIF images will be downloaded, rather than opened, by certain browsers (at least, that was the behaviour for Chrome 124.0.6367.119 on Windows 11).

Screenshots/videos:

Checklist:

AVIF images will open, rather than download, as the default behaviour.
@LoganBooker LoganBooker changed the base branch from master to dev May 8, 2024 11:37
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.

None yet

1 participant