forget EXIF orientation after edit

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

forget EXIF orientation after edit

Post by rmtk »

My Olympus E-PL5 camera stores photo orientation information in EXIF data. Xnview MP can correctly set the orientation as I checked the "rotate images according to EXIF orientation tag".

However if I try to edit and save a portrait photo, rotate it for example, XnviewMP will forget the orientation info and set it to landscape. It is annoying to do a manual rotate every time.

Hope a fix in the next version.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: forget EXIF orientation after edit

Post by m.Th. »

However if I try to edit and save a portrait photo, rotate it for example, XnviewMP will forget the orientation info and set it to landscape. It is annoying to do a manual rotate every time.
Rotate it? (See my emphasis above)
Then isn't normal to change the orientation?

Also, I don't think what Pierre does inside but usually such programs have the following workflow:

1. Load the file myFile.jpg into memory image
2. Process the memory image
3. Save the memory image to TmpFile.jpg
4. If Step 3 succeeded, then:
4.a. Delete myFile.jpg
4.b. Rename TmpFile.jpg to myFile.jpg

Hence, most probably, the EXIF info is/can be lost in processing.

Anyway an Aperture of F/2.8 with a Shutter Speed of 1/60 at a ISO 800 (and many other EXIF values) becomes meaningless if one alters Brightness/Contrast/Hue/Saturation/Lightness/Gamma whatever...
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: forget EXIF orientation after edit

Post by rmtk »

Oh, sorry for my ambiguous discription.
I mean to rotate at an angle, 1° or 2°, not 90° right or 90° left.
After the rotation and saving the photo still appears to be portrait, but if you close and reopen it you would find its orientation now landscape.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: forget EXIF orientation after edit

Post by m.Th. »

rmtk wrote:Oh, sorry for my ambiguous discription.
I mean to rotate at an angle, 1° or 2°, not 90° right or 90° left.
After the rotation and saving the photo still appears to be portrait, but if you close and reopen it you would find its orientation now landscape.
"Landscape" in fact means also in EXIF language "no orientation".

I'm pretty sure that there isn't code inside of XnViewMP (and in any other program for that matter) to check if the rotation angle is between -45 and 45 degrees or to check... ...what? The width / height ratio? Perhaps... and set the EXIF tag accordingly.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: forget EXIF orientation after edit

Post by rmtk »

Not only rotation, but also adjust colors, adjust levels or almost all kinds of edit will make my portrait photo landscape.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: forget EXIF orientation after edit

Post by xnview »

rmtk wrote:Not only rotation, but also adjust colors, adjust levels or almost all kinds of edit will make my portrait photo landscape.
could you send me a sample?
Pierre.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: forget EXIF orientation after edit

Post by rmtk »

already sent
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: forget EXIF orientation after edit

Post by xnview »

Bug confirmed and will be fixed. See issue Issue 285 for current status and details.
Pierre.
Post Reply