Photos are rotated after saving

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

Post Reply
Octopuss
Posts: 52
Joined: Thu Mar 17, 2016 1:17 pm

Photos are rotated after saving

Post by Octopuss » Tue Jan 15, 2019 9:20 pm

I have some photos from my phone that display in correct orientation when I open them with Xn, but after let's say I crop them a little and save and reload them, they are suddenly rotated to landscape shape.
Does anyone know why is it happening and what can I do? Are there any settings I missed?

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

Re: Photos are rotated after saving

Post by xnview » Mon Feb 04, 2019 12:49 pm

could you send me a sample file?
Pierre.

Octopuss
Posts: 52
Joined: Thu Mar 17, 2016 1:17 pm

Re: Photos are rotated after saving

Post by Octopuss » Sun Feb 17, 2019 6:18 pm

I will when I manage to trigger it again.
I think it only happens with photos from a mobile. Something about the orientation flag getting messed up I believe.

Octopuss
Posts: 52
Joined: Thu Mar 17, 2016 1:17 pm

Re: Photos are rotated after saving

Post by Octopuss » Tue Mar 05, 2019 11:41 am

Found one.
The photo was showing correctly until I resized it - then it flipped 90° to the right.
Attachments
DSC_0040.JPG

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

Re: Photos are rotated after saving

Post by xnview » Mon Mar 11, 2019 3:56 pm

the file that you sent is landscape
Pierre.

kosmoletec
Posts: 4
Joined: Wed Mar 27, 2019 11:07 am

Re: Photos are rotated after saving

Post by kosmoletec » Wed Mar 27, 2019 11:22 am

I have the same problem. I really like XnView and use it for years but after I started using Mac (OS X) this happens to me all the time and it is extremely annoying.

Steps to reproduce (only on OS X?):
1) Open photo in portrait orientation
2) Make any change (crop, contrast, ...)
3) Save photo
4) Open the photo again - it is in landscape orientation

I usually spend a lot of time by trying to fix this (rotate photo back to portrait and save). Because of the bug it is usually not easy (again rotated back to landscape). Often I have to rotate the pohoto back like 10 times before I finally open it in portrait mode.

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

Re: Photos are rotated after saving

Post by xnview » Mon Apr 01, 2019 11:07 am

kosmoletec wrote:
Wed Mar 27, 2019 11:22 am
I have the same problem. I really like XnView and use it for years but after I started using Mac (OS X) this happens to me all the time and it is extremely annoying.

Steps to reproduce (only on OS X?):
1) Open photo in portrait orientation
2) Make any change (crop, contrast, ...)
3) Save photo
4) Open the photo again - it is in landscape orientation

I usually spend a lot of time by trying to fix this (rotate photo back to portrait and save). Because of the bug it is usually not easy (again rotated back to landscape). Often I have to rotate the pohoto back like 10 times before I finally open it in portrait mode.
could you send me a file to try to reproduce?
Pierre.

kosmoletec
Posts: 4
Joined: Wed Mar 27, 2019 11:07 am

Re: Photos are rotated after saving

Post by kosmoletec » Tue Apr 02, 2019 8:40 am

could you send me a file to try to reproduce?
Here is a photo I opened in portrait mode, changed contrast on it and saved.

Edit: here the picture looks like it actually is in portrait orientation but try to open the picture in new tab or in XnView/any other app.
Attachments
IMG_1234.JPG

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

Re: Photos are rotated after saving

Post by xnview » Mon Apr 15, 2019 12:20 pm

kosmoletec wrote:
Tue Apr 02, 2019 8:40 am
Here is a photo I opened in portrait mode, changed contrast on it and saved.
do you have the original one? the attached file has a bad EXIF orientation field...
Pierre.

kosmoletec
Posts: 4
Joined: Wed Mar 27, 2019 11:07 am

Re: Photos are rotated after saving

Post by kosmoletec » Mon Apr 15, 2019 8:14 pm

No, I overwrote original with this one.
I am sending another one - original and saved in XnView after contrast is changed.
Attachments
IMG_1217_after.jpg
IMG_1217.JPG

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

Re: Photos are rotated after saving

Post by xnview » Tue Apr 16, 2019 9:01 am

kosmoletec wrote:
Mon Apr 15, 2019 8:14 pm
I am sending another one - original and saved in XnView after contrast is changed.
I can't reproduce, 'settings>general>Rotate images according EXIF' is checked?
Pierre.

kosmoletec
Posts: 4
Joined: Wed Mar 27, 2019 11:07 am

Re: Photos are rotated after saving

Post by kosmoletec » Sat Apr 20, 2019 6:17 am

Yes, checked. I doubt I changed anything from default settings.
Today I noticed that this bug most likely happens only on pictures bigger than ca. 3 MB. I cannot reproduce it on smaller images.

Post Reply