Files w/ .HIF extension are not handled as HEIF #4603

Closed
opened 2026-02-20 03:07:34 -05:00 by deekerman · 3 comments
Owner

Originally created by @vafrederico on GitHub (Jan 4, 2025).

Originally assigned to: @mertalev on GitHub.

The bug

Sony cameras (at least a6700) use .HIF extension instead of .HEIF.
My guess is that the app is not considering the HIF extension as HEIF files.

The OS that Immich Server is running on

Debian

Version of Immich Server

v1.123.0

Version of Immich Mobile App

v1.122.3

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

On Mobile (at least Android):

  1. Add a HEIF file w/ .HIF extension
  2. Backup doesn't recognize it as a file

On Web:

  1. Upload the same .HIF file
  2. It gets processed and handled correctly

Relevant log output

No response

Additional information

No response

Originally created by @vafrederico on GitHub (Jan 4, 2025). Originally assigned to: @mertalev on GitHub. ### The bug Sony cameras (at least a6700) use .HIF extension instead of .HEIF. My guess is that the app is not considering the HIF extension as HEIF files. ### The OS that Immich Server is running on Debian ### Version of Immich Server v1.123.0 ### Version of Immich Mobile App v1.122.3 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML N/A ``` ### Your .env content ```Shell N/A ``` ### Reproduction steps On Mobile (at least Android): 1. Add a HEIF file w/ .HIF extension 2. Backup doesn't recognize it as a file On Web: 1. Upload the same .HIF file 2. It gets processed and handled correctly ### Relevant log output _No response_ ### Additional information _No response_
deekerman 2026-02-20 03:07:34 -05:00
Author
Owner

@mmomjian commented on GitHub (Jan 4, 2025):

We currently map .hif to image/hif - I'm not certain that is an actual mime type.

Perhaps it needs to be mapped to image/heif?

@mmomjian commented on GitHub (Jan 4, 2025): We [currently map](https://github.com/immich-app/immich/blob/main/server/src/utils/mime-types.ts) `.hif` to `image/hif` - I'm not certain that is an [actual mime type](https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format). Perhaps it needs to be mapped to `image/heif`?
Author
Owner

@vafrederico commented on GitHub (Jan 5, 2025):

Possibly. The server does handle it fine through web, so it seems more or how the mobile app is handling it. One guess is that given that Android doesn't seem to natively support it, so maybe when trying to list the items on the folder it doesn't return it?

@vafrederico commented on GitHub (Jan 5, 2025): Possibly. The server does handle it fine through web, so it seems more or how the mobile app is handling it. One guess is that given that Android doesn't seem to natively support it, so maybe when trying to list the items on the folder it doesn't return it?
Author
Owner

@jrasm91 commented on GitHub (Sep 5, 2025):

There's not enough in this issue to reproduce it, It's also unclear what the actual issue is. If you are still facing an issue with this, please upload screenshots of the problem as well as a sample image that reproduces the issue.

@jrasm91 commented on GitHub (Sep 5, 2025): There's not enough in this issue to reproduce it, It's also unclear what the actual issue is. If you are still facing an issue with this, please upload screenshots of the problem as well as a sample image that reproduces the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/immich#4603
No description provided.