The photo is displayed in the wrong direction #3471

Closed
opened 2026-02-05 08:37:38 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @PolarisGitYHNL on GitHub (Jun 12, 2024).

The bug

The photo is displayed in the wrong direction.
The photo source file is a vertical photo, and it displays normally in both the Synology album and MT Photos (another Docker based album), as shown in the following figure:
image
image
In IMMICH, the shape of the thumbnail is normal and displayed as a vertical version, as shown in the following figure:
image
However, the images and photos in the thumbnail are folded down to display horizontally, as shown in the following figure:
image
The same applies to displaying errors in mobile apps:
image

The OS that Immich Server is running on

Sinology DSM docker

Version of Immich Server

v1.106.2

Version of Immich Mobile App

v1.106.1

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Perhaps the problem is unrelated to this

Your .env content

Perhaps the problem is unrelated to this

Reproduction steps

None

Relevant log output

No response

Additional information

No response

Originally created by @PolarisGitYHNL on GitHub (Jun 12, 2024). ### The bug The photo is displayed in the wrong direction. The photo source file is a vertical photo, and it displays normally in both the Synology album and MT Photos (another Docker based album), as shown in the following figure: <img width="1916" alt="image" src="https://github.com/immich-app/immich/assets/165972224/9f412f9e-2ef6-4d01-8676-bae686837fcf"> <img width="1919" alt="image" src="https://github.com/immich-app/immich/assets/165972224/362457e6-4d49-4a64-8278-d75073f5d774"> In IMMICH, the shape of the thumbnail is normal and displayed as a vertical version, as shown in the following figure: <img width="1919" alt="image" src="https://github.com/immich-app/immich/assets/165972224/b57854a5-3908-4cd7-a210-05497c2333d8"> However, the images and photos in the thumbnail are folded down to display horizontally, as shown in the following figure: <img width="1919" alt="image" src="https://github.com/immich-app/immich/assets/165972224/313256d7-f51c-4b42-95c1-33e44f780d20"> The same applies to displaying errors in mobile apps: ![image](https://github.com/immich-app/immich/assets/165972224/346ec6a5-b9cd-4848-a6be-68b8d200512b) ### The OS that Immich Server is running on Sinology DSM docker ### Version of Immich Server v1.106.2 ### Version of Immich Mobile App v1.106.1 ### Platform with the issue - [X] Server - [X] Web - [X] Mobile ### Your docker-compose.yml content ```YAML Perhaps the problem is unrelated to this ``` ### Your .env content ```Shell Perhaps the problem is unrelated to this ``` ### Reproduction steps ```bash None ``` ### Relevant log output _No response_ ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Jun 12, 2024):

Does the EXIF of the files have any rotation metadata?

@bo0tzz commented on GitHub (Jun 12, 2024): Does the EXIF of the files have any rotation metadata?
Author
Owner

@Snowknight26 commented on GitHub (Jun 12, 2024):

libraw probably needs an update.

Potential workaround: https://github.com/immich-app/immich/issues/9845#issuecomment-2145840833

@Snowknight26 commented on GitHub (Jun 12, 2024): libraw probably needs an update. Potential workaround: https://github.com/immich-app/immich/issues/9845#issuecomment-2145840833
Author
Owner

@PolarisGitYHNL commented on GitHub (Jun 12, 2024):

Does the EXIF of the files have any rotation metadata?
YES
One line in EXIF:
Orientation Rotate 270 CW

@PolarisGitYHNL commented on GitHub (Jun 12, 2024): > Does the EXIF of the files have any rotation metadata? YES One line in EXIF: Orientation Rotate 270 CW
Author
Owner

@PolarisGitYHNL commented on GitHub (Jun 12, 2024):

sorry
my mistake(I have reopened it)

@PolarisGitYHNL commented on GitHub (Jun 12, 2024): sorry my mistake(I have reopened it)
Author
Owner

@jrasm91 commented on GitHub (Jun 14, 2024):

Can you refresh metadata and then refresh thumbnails for this picture and let me know if it is still orientated incorrectly?

image

@jrasm91 commented on GitHub (Jun 14, 2024): Can you refresh metadata and then refresh thumbnails for this picture and let me know if it is still orientated incorrectly? ![image](https://github.com/immich-app/immich/assets/4334196/df37e42a-9f6f-45fc-88fa-4964b9763e26)
Author
Owner

@ghost commented on GitHub (Jul 15, 2024):

Same issue here. For me its's only on vertical orientated photos. Some thumbnails are good orientated and some are not. Same device, same resolution and same orientation.

@ghost commented on GitHub (Jul 15, 2024): Same issue here. For me its's only on vertical orientated photos. Some thumbnails are good orientated and some are not. Same device, same resolution and same orientation.
Author
Owner

@ghost commented on GitHub (Jul 15, 2024):

Also noticed on web that when opening the detail page of the photo the orientation is still wrong but after zoom the photo rotates 90deg to the correct view.

@ghost commented on GitHub (Jul 15, 2024): Also noticed on web that when opening the detail page of the photo the orientation is still wrong but after zoom the photo rotates 90deg to the correct view.
Author
Owner

@theorician commented on GitHub (Jul 26, 2024):

I'm seeing the same issue on 109.2. I've refreshed metadata and thumbnails for an image and it's still sideways. It shows fine everywhere else. It's an Oly raw ORF with Orientation: Rotate 90 CW set in the EXIF.

@theorician commented on GitHub (Jul 26, 2024): I'm seeing the same issue on 109.2. I've refreshed metadata and thumbnails for an image and it's still sideways. It shows fine everywhere else. It's an Oly raw ORF with Orientation: Rotate 90 CW set in the EXIF.
Author
Owner

@its0keke commented on GitHub (Aug 28, 2024):

Not positive if I'm seeing the same issue, but I've got a jpg image with a Rotate 180 xmp tag that was set by Digikam. When Immich generated the thumbnails, the rotation isn't applied.

@its0keke commented on GitHub (Aug 28, 2024): Not positive if I'm seeing the same issue, but I've got a jpg image with a `Rotate 180` xmp tag that was set by Digikam. When Immich generated the thumbnails, the rotation isn't applied.
Author
Owner

@danieldietzler commented on GitHub (Sep 21, 2024):

Most likely this is fixed. If it's still an issue, please provide a sample file.

@danieldietzler commented on GitHub (Sep 21, 2024): Most likely this is fixed. If it's still an issue, please provide a sample file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#3471