mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
Files can carry a .heic/.heif/.avif extension without actually being encoded as such - e.g. when a tool converts HEIC to JPEG in place but keeps the original filename/extension. Since the HEIF-vs-classic-EXIF orientation branch in getExifTags() was keyed purely off mimeTypes.isHeifImage(asset.originalPath) (extension only), such files had their perfectly valid EXIF Orientation tag silently discarded (because no QuickTime Rotation/irot atom exists in a real JPEG), which in turn left width/height unswapped for sideways images and produced a squished/stretched thumbnail. Now the branch is only taken when ExifTool's own content-detected FileTypeExtension also identifies the file as HEIF-family, reusing the existing mimeTypes.isHeifImage() extension set instead of hardcoding a new one. Fixes #29766 |
||
|---|---|---|
| .. | ||
| bin | ||
| src | ||
| test | ||
| .gitignore | ||
| .npmignore | ||
| .prettierignore | ||
| .prettierrc | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| eslint.config.mjs | ||
| helmet.json | ||
| mise.toml | ||
| nest-cli.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||