1.8.7 not outputting orientation correctly

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
malberg
Posts: 2
Joined: Mon Mar 31, 2025 3:34 am

1.8.7 not outputting orientation correctly

Post by malberg »

I upgraded to 1.8.7 last week, and noticed a bug. It's not outputting the camera orientation correctly.

On 1.8.6 and 1.8.7:
  1. Open Xnview MP
  2. Navigate to a photo
  3. Select Tools-Batch Convert
  4. Verify "preserve metadata" is checked.
  5. Click convert
Looking at the exported photo on 1.8.6, and it shows the correct orientation when viewing in irfanview and windows explorer (rotated from landscape 90 degrees clockwise to portrait)

Looking at the exported photo on 1.8.7, and it shows the photo sideways in landscape mode in irfanview and windows explorer.

Running fc in binary compare in powershell shows one difference:

Code: Select all

fc.exe /b IMG_0058-1.8.6.JPG IMG_0058-1.8.7.JPG
Comparing files IMG_0058-1.8.6.JPG and IMG_0058-1.8.7.JPG
00000048: 01 08
Attachments
IMG_0058-1.8.7.JPG
IMG_0058-1.8.7.JPG (194.68 KiB) Viewed 326 times
IMG_0058-1.8.6.JPG
IMG_0058-1.8.6.JPG (194.68 KiB) Viewed 326 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.7 not outputting orientation correctly

Post by xnview »

please send the original file
Pierre.
malberg
Posts: 2
Joined: Mon Mar 31, 2025 3:34 am

Re: 1.8.7 not outputting orientation correctly

Post by malberg »

Original file is 5.5 MB and attachment limit is 2MB so I used 7zip to split it and I'm attaching those files.

Filenames were originally
IMG_0058.7z.001
IMG_0058.7z.002
IMG_0058.7z.003

they may need to be renamed to unpack
Attachments
IMG_0058-003.7z
(1.66 MiB) Downloaded 95 times
IMG_0058-002.7z
(1.81 MiB) Downloaded 90 times
IMG_0058-001.7z
(1.81 MiB) Downloaded 89 times
cday
XnThusiast
Posts: 4394
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: 1.8.7 not outputting orientation correctly

Post by cday »

A download link is normally best if you can provide one... :D

If you have a Google account, you could upload the original file to Drive and then post a download link enabled for anyone to download the file.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.7 not outputting orientation correctly

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.7 not outputting orientation correctly

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.8.8. Please check and confirm the bug fix here.
Pierre.
Post Reply