Skip to content

Commit

Permalink
Add AVIF MIME type support to mimetype definitions
Browse files Browse the repository at this point in the history
AVIF images will open, rather than download, as the default behaviour.
  • Loading branch information
LoganBooker authored May 8, 2024
1 parent ddb28b3 commit f7e349c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

# Likewise, add explicit content-type header for certain missing image types
mimetypes.add_type('image/webp', '.webp')
mimetypes.add_type('image/avif', '.avif')

if not cmd_opts.share and not cmd_opts.listen:
# fix gradio phoning home
Expand Down

0 comments on commit f7e349c

Please sign in to comment.