jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
35.07k stars 3.19k forks source link

Photos: folder thumb not shown in correct orientation in comparison to slideshow and image list view #3472

Open bigcookie opened 4 years ago

bigcookie commented 4 years ago

Describe the bug title pictures of the shown folder which contains the pictures are respecting the EXIF rotation information wrongly. E.g. I do have pictures, which contain the rotation flag "CW 90". All application I tried show the correct orientation (Irfanview on Windows, Preview/Xee on Macos). The picture itself is shown with correct orientation in Jellyfin when being opened. The exmaple picture should be rotated 90° CW according to EXIF, but it is shown wrongly rotated (90° CCW).

System (please complete the following information):

To Reproduce

  1. Upload pictures with titled orientation and correct EXIF information describing the required rotation. Make sure the first image is the one which requires rotation
  2. Create library with the new picture folder and scan
  3. Check created "thumbnails" which are shown in the folder view

Expected behavior Thumbnails used in the folder view should respect the orientation of the image the same way like the image list/slideshow

Logs None

Screenshots Folder thumbnail with issue:

Folder thumb

List view when opening the folder in web view:

Image list vew

Slideshow view of the picture in question:

Slideshow view

Additional context Pictures have been shot with an iPhone 7 or iPhone 8, standard camera app, standard settings.

bigcookie commented 4 years ago

Verified the issue: rotating the image according to exif information and cleaning up the rotation flag to "top left" (no rotation required), fixed the issue. I consider this a workaround (I dont want to go through all 20k photos - even by batch processing, as you need to do this then for all new photos etc). This should be hopefully an easy fix, as all other display locations respect the flag already. Either this is respected while displaying the thumb or creating it. As today all cameras provide this information and all OSs are respecting it, Jellyfin should respect the exif based auto-rotaton everywhere.

svemonix commented 4 years ago

I can confirm the same bug in 1.6.2.

bigcookie commented 4 years ago

Using now version 10.6.2 - same issue. Server: QNAP TS-653B Version: 10.6.2 Operating System: Linux Architecture: X64

Here are some more example fotos - no screenshots, in case this helps: IMG_4937 IMG_4938

This is the result, when putting both into a folder in the photo library:

96100181-5eb97480-0ed4-11eb-8005-b4301da6ccbf
bigcookie commented 3 years ago

Pushing this bug :-)

stale[bot] commented 3 years ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

fdk17 commented 3 years ago

I installed JellyFin 10.7.7 and this is still an issue. The rotation flag doesn't seem to be used for the Primary photo for the photo album. In the album itself the photo is properly rotated. When uploading a photo as the Primary photo for the photo album the drag and drop will show the photo correctly rotated but when hitting upload it will be displayed incorrectly.

fdk17 commented 3 years ago

Looking at the HTML the image is correctly shown when accessed: http://yyy:8096/Items/b59212b44d9b9a38c00e300e5055acfb/Images/Primary

But improperly rotated when accessed as: http://yyy:8096/Items/b59212b44d9b9a38c00e300e5055acfb/Images/Primary?fillHeight=305&fillWidth=406

fdk17 commented 3 years ago

http://yyy:8096/Items/b59212b44d9b9a38c00e300e5055acfb/Images/Primary?fillHeight=305&fillWidth=406 In a browser you can right click and download the image (it's called Primary.jpg). In Windows explorer and in Windows Photo the image is incorrectly rotated compared to the image that was uploaded as the Primary photo.

m33ts4k0z commented 2 years ago

Still an issue as of 18th of April 2022

mxwi commented 2 years ago

bug still exists:

Version: 10.8.5 Betriebssystem: Linux Architektur: X64