Skip to content

Map .hif files to image/heif - #911

Merged
kulmann merged 1 commit into
mainfrom
feat/hif-mime-type
Oct 26, 2026
Merged

kulmann merged 1 commit into
mainfrom
feat/hif-mime-type

Conversation

@dschmidt

@dschmidt dschmidt commented Oct 24, 2026 •

Copy link
Copy Markdown

Canon (EOS R5, R6, R3, 1D X Mark III) and Sony (α1, α7 IV, α7S III) cameras write HEIF photos with the .hif extension. The mime table had heic, heics, heif and heifs, but not hif, so these files were served as application/octet-stream: no has-preview, no thumbnail and no viewer, while the same image saved as .heif got all three.

This adds the one missing extension. It pairs with opencloud-eu/web#4009, which opens HEIF and AVIF images in the web viewer wherever the server renders a preview for them.

Canon and Sony cameras write HEIF photos with the .hif extension. Without
a mapping these were served as application/octet-stream, so they got no
preview and no viewer, while the same image saved as .heif did.
@dschmidt dschmidt self-assigned this Oct 24, 2026
@dschmidt
dschmidt marked this pull request as ready for review October 24, 2026 05:56
@kulmann
kulmann merged commit 67aa85d into main Oct 26, 2026
19 of 20 checks passed
@kulmann
kulmann deleted the feat/hif-mime-type branch October 26, 2026 08:06
@openclouders openclouders mentioned this pull request Oct 26, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants