Repository navigation
Replies: 3 comments 1 reply
|
I believe JXL is in a similar camp as HEIF in that it handles orientation in its internal format, so changing EXIF orientation is not the correct way to rotate it. |
|
Orientation can be stored internally (currently this works), but can also be stored in metadata container. Aren't both valid sources? In my case I have large amount of jxl files with correct orientation set with digikam, which writes to both like this: I made a proof-of-concept fork with codex-cli: https://github.com/anaxonda/immich Immich already stores the exif orientation in the db. If the db stored rotation is different from the immich, it then uses a probe, https://github.com/anaxonda/immich/blob/main/server/src/utils/jxl.ts to check codestream orientation which is currently preferred if both are present. We could just apply the db exif orientation but I think it can lead to double rotation. Seems to solve my problem, and I guess this could also apply to HEIF files? Hope this can help the devs. |
|
Looked into how jxl orientation is supposed to be displayed. Unfortunately jxl codestream orientation always takes precedence and officially applications should ignore exif orientation according to libjxl spec.
And currently there seems to be no way to do lossless orientation changes: libjxl/libjxl#4721. For my needs my patch suffices; hopefully in near future this can be fixed in jxl implementation so that orientation can be written to jxl codestream. |
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
JXL image orientation is not applied when it is stored in exif data.
On import its stored in database but not applied by by decoder.
I believe this is a similar issue to #24807, in that case orientation is stored in xmp but not applied to thumbnail/preview image.
Here's jxlinfo and exiftool for two files (attached) "jxl-codestream-orientation-6.jxl" displays correctly, "jxl-metadata-only-orientation-6.jx" not.
jxls.zip
The OS that Immich Server is running on
debian trixie
Version of Immich Server
2.7.5
Version of Immich Mobile App
n/a
Platform with the issue
Device make and model
No response
Your docker-compose.yml content
Your .env content
Reproduction steps
...
Relevant log output
Additional information
No response
All reactions