XnView: MP, Version 0.99.7 64bits (Jan 13 2022)
OS: Win 10 Pro 21H2 64bit
Hi, I hope this is not a duplicity of another bug report, but I have found problem with portrait-oriented pictures and I was able to reproduce with for example 5 copies of the same image from my camera. I cannot reproduce it with random image downloaded from google, probably because of missing EXIF data. Hope this is not caused by wrong program settings
Effect: wrong orientation from third edited photo.
To reproduce:
1) open the first picture, adjust levels / crop / rotate by ie. 2°(does not matter, this is just what I actually do)
2) go to next image (I do it with PgDn key), confirm saving of first image. Everything is OK.
3) do the same (similar) picture adjustments on 2nd picture
4) go to next image, save. Everything is OK.
3) do the same (similar) picture adjustments on 3rd picture
4) go to next image, save. This and all following portrait pictures have broken orientation information, that means all originally portrait images are now saved as landscape. Does not matter, if the previous 2 editted pictures was landscape or portrait
Actual behaviour (bug): When I want to edit whole photos folder, I edit one photo by one and weird behaviour starts at photo no.3

If I close XnVeiw after each picture adjustment, it is OK (but I do not want to close it every time).
If I uncheck the option "Keep EXIF" in Tools/Settings...Formats/Write/JPEG it does not produce this error, bud I would like to preserve EXIF files.
The older SW XnView for Windows XnView v1.98.2 19/07/2011 works fine.
Manualy rotated photo after wrongly rotated is also OK.
Once the photo is manipulated, it does not produce the error next time.
Expected behaviour: Image orientation should be correct
The EXIF data are added as an attachment, file with photos are here (if you don't want to open that zip let me know where can i upload photos with option to download it again with original EXIF):
https://ulozto.cz/tam/a6a8b993-03bd-4e7 ... 618dc57547
Thank you for the great SW and for the answer
