Preview thumbnails are not rotated

*** Please report new bugs here! ***

Moderator: Dreamer

trance
Posts: 9
Joined: Tue Dec 07, 2021 8:35 pm

Preview thumbnails are not rotated

Post by trance »

Original image (landscape orientation, rotated 90° left): image on thumbnail rotated 90° left, full size image rotated 90° right, EXIF orientation upper-right (6)
Select: JPEG transform, rotate based on EXIF, reset EXIF orientation
Resulting image: image on thumbnail in portrait orientation (rotated correctly), full size image rotated 90° right, EXIF orientation upper-left (1)
The Image, considering the rotation and orientation of the JPEG, did not change (rotated 90° right)
The orientation did not reset
Image should display in thumbnail in same orientation as preview and as full view

it would be nice if the orientation preview was displayed in the JPEG transform dialog

If I select JPEG rotation and didn't press any rotation button, but will check "reset EXIF orientation", the thumbnail will not change, but the Image will become the correct orientation (portrait) but thumbnails will remain in landscape orientation

If I select (thumbnail rotated 90° left, image rotated 90° right) rotate thumbnail 90° right to make it portrait orientation, it will make image upside-down (the thumbnail rotates 180°)

What I need: - display thumbnails in the same orientation as Image, rotate thumbnails and images simultaneously, reset EXIF orientation
trance
Posts: 9
Joined: Tue Dec 07, 2021 8:35 pm

Re: Preview thumbnails are not rotated

Post by trance »

xviewbug.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Preview thumbnails are not rotated

Post by xnview »

could you send me the original file?
Pierre.
trance
Posts: 9
Joined: Tue Dec 07, 2021 8:35 pm

Re: Preview thumbnails are not rotated

Post by trance »

IMG_5092.ZIP
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Preview thumbnails are not rotated

Post by xnview »

the image is portrait but with exif orientation it becomes landscape, thumbnail is not oriented in the same way
Pierre.
trance
Posts: 9
Joined: Tue Dec 07, 2021 8:35 pm

Re: Preview thumbnails are not rotated

Post by trance »

why some files show rotation icon and others don't show despite the fact that they contain Exif orientation?
how do i fix them? only those that are broken
what is the "the white rectangle located right-bottom inside the gray rectangle" icon on thumbnails?

the fact that XnView doesn't update thumbnail when rotate is a bug! :bug:
User avatar
XnTriq
Moderator & Librarian
Posts: 5936
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Preview thumbnails are not rotated

Post by XnTriq »

trance wrote: Thu Dec 09, 2021 4:59 amwhat is the "the white rectangle located right-bottom inside the gray rectangle" icon on thumbnails?
This overlay icon indicates that XnView's browser is displaying the embedded preview/thumbnail retrieved from a JPEG file.
You can change this behavior by deactivating Use embedded thumbnail in Tools
Settings…BrowserThumbnailMisc.
User avatar
XnTriq
Moderator & Librarian
Posts: 5936
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Preview thumbnails are not rotated

Post by XnTriq »

How to fix IMG_5092.JPG with XnView MP:
  1. Select the thumbnail for IMG_5092.JPG in browse mode.
  2. Go to ToolsJPEG lossless transformationsReset EXIF orientation field.
  3. Go to ToolsMetadataEXIF thumbnail - Rotate 90°.
trance
Posts: 9
Joined: Tue Dec 07, 2021 8:35 pm

Re: Preview thumbnails are not rotated

Post by trance »

i have many files, and some are oriented left, some are right, and those which are landscape, i don't want to touch

why the rotation icon is not displayed if Exif orientation tag is present?

is this correct that it does not update thumbnail and only rotates it? is it rotated the same lossless-way as the image or just switching flag? what if it is broken or contains something different? is they created with the same dimensions as they was before? and what was the first time, before any "before"?
User avatar
XnTriq
Moderator & Librarian
Posts: 5936
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Preview thumbnails are not rotated

Post by XnTriq »

trance wrote: Fri Dec 10, 2021 9:03 pmwhy the rotation icon is not displayed if Exif orientation tag is present?
The icon is displayed if Rotate images according to EXIF orientation tag is activated and Use embedded thumbnail is disabled:

p174363.png
  1. [  ] Rotate images according to EXIF orientation tag
    [  ] Use embedded thumbnail
  2. [  ] Rotate images according to EXIF orientation tag
    [×] Use embedded thumbnail
  3. [×] Rotate images according to EXIF orientation tag
    [  ] Use embedded thumbnail
  4. [×] Rotate images according to EXIF orientation tag
    [×] Use embedded thumbnail
You do not have the required permissions to view the files attached to this post.
bege
Posts: 55
Joined: Sun Feb 20, 2011 6:27 pm
Location: Germany

Re: Preview thumbnails are not rotated

Post by bege »

XnTriq wrote: Sat Dec 11, 2021 5:45 am
The icon is displayed if Rotate images according to EXIF orientation tag is activated and Use embedded thumbnail is disabled:

I don't think this behavior is user friendly - at least not for me. I have files from a camera that does not add exif orientation. I turned them clockwise with XnV from landscape to portrait (pref: change orientation only if possible). ExifTool shows that orientation and the images are displayed that way (pref: turn images according to exif orientation). But in browser view they are still displayed in landscape orientation, no matter whether thumbnails are deactivated or not.

Edit: I just noticed that the files lost the exif orientation through uploading. I cannot post the images here ("too big").

https://abload.de/img/dscn0666r2jnq.jpg
Screenshot_296.png
I "converted" the image with XnV (same file format), this file is displayed in browser rotated.

https://abload.de/img/dscn0666_15fj67.jpg
Screenshot_294.png
Screenshot_293.png


It is too confusing. No matter whether thumbnails are activated or not, XnV should turn both browser view and image view according to exif orientation if that pref. is set.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Preview thumbnails are not rotated

Post by xnview »

your files don't have orientation
Pierre.
bege
Posts: 55
Joined: Sun Feb 20, 2011 6:27 pm
Location: Germany

Re: Preview thumbnails are not rotated

Post by bege »

xnview wrote: Wed Jan 05, 2022 7:56 am your files don't have orientation
Orientation "Rotate 90 CW" is orientation. Please, re-read my post. I wrote that uploading them to the host removed orientation. That's why I added the screenshots of ExifTool.
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Preview thumbnails are not rotated

Post by xnview »

could you send a zip file?
Pierre.
bege
Posts: 55
Joined: Sun Feb 20, 2011 6:27 pm
Location: Germany

Re: Preview thumbnails are not rotated

Post by bege »

xnview wrote: Thu Jan 06, 2022 7:06 am could you send a zip file?
https://filehorst.de/d/ecmFtFGr