XnView MP 0.90 Rotate Bug

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

XnView MP 0.90 Rotate Bug

Post by obelisk »

After going to .9, I noticed sometimes some files aren't rotated right.

I would have a jpg file from camera. Then I use LR to make RAW->jpg. This file looks rotated in XMP. Fine in everything else. If I open this jpg in PS and edit and save, then it's fixed in XMP again.
User avatar
masterjp
Posts: 454
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: XnView MP 0.90 Rotate Bug

Post by masterjp »

JPEG picture files of your camera has EXIF-Information which contain information about the rotation.
Some programs rotate the whole picture information about 90, 180 or 270 degree, intelligent programs change only the EXIF-Information about the rotation.

XnView MP can change the EXIF-Information or rotate the whole picture.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.2 | XN-View 2.51.7 | XnConvert 1.101.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

XnView MP does not DISPLAY correctly.
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

Use exiftool with this to test

Code: Select all

-adobe:all= -exif:all= -xmp:all= -photoshop:all= -tagsfromfile "source.xmp" -iptc:all  -xmp:all -overwrite_original -ext jpg -r %*
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

xmp tags just have iptc copyright fields.

XnView MP0.9 is the ONLY program to rotate things wrongly.
all other browsers, editors, viewers work.
User avatar
xnview
Author of XnView
Posts: 44759
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.90 Rotate Bug

Post by xnview »

do you have sample file to reproduce?
Pierre.
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

Take any file and run exiftool
I've moved back to 0.87 and it works perfectly since then.
User avatar
xnview
Author of XnView
Posts: 44759
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.90 Rotate Bug

Post by xnview »

obelisk wrote: Wed Apr 18, 2018 7:43 am Take any file and run exiftool
I've moved back to 0.87 and it works perfectly since then.
what do you have in source.xmp? you don't change orientation with exiftool?
Pierre.
vertigo
Posts: 132
Joined: Wed Feb 15, 2017 3:49 pm

Re: XnView MP 0.90 Rotate Bug

Post by vertigo »

Try opening the image in GIMP. It's the only program I'm aware of (though there could be others) that indicates when the Exif data doesn't match with the actual rotation. As previously mentioned, some cameras and software "rotate" images by just changing an Exif field, and others actually rotate the image by moving all the pixels, which is more computationally intensive. The best fix I found for this is JPEG Autorotate, which physically rotates the image to match the Exif data. I'm assuming the problem here is that XnView MP is using the actual rotation vs using Exif data, though I could be wrong.
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

xnview wrote: Sun Apr 22, 2018 9:05 am
what do you have in source.xmp? you don't change orientation with exiftool?
Where is this source.xmp file?
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

Any news on this?

Code: Select all

-adobe:all= -exif:all= -xmp:all= -photoshop:all= -iptc:all  -xmp:all -overwrite_original -ext jpg -r %*

Code: Select all

<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 9.89'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

 <rdf:Description rdf:about=''
  xmlns:Iptc4xmpCore='http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/'>
  <Iptc4xmpCore:CreatorContactInfo rdf:parseType='Resource'>
   <Iptc4xmpCore:CiAdrCity></Iptc4xmpCore:CiAdrCity>
   <Iptc4xmpCore:CiAdrCtry></Iptc4xmpCore:CiAdrCtry>
  </Iptc4xmpCore:CreatorContactInfo>
 </rdf:Description> 

 <rdf:Description rdf:about=''
  xmlns:dc='http://purl.org/dc/elements/1.1/'>
  <dc:creator>
   <rdf:Seq>
    <rdf:li>Bob</rdf:li>
   </rdf:Seq>
  </dc:creator>
  <dc:rights>
   <rdf:Alt>
    <rdf:li xml:lang='x-default'>All rights reserved</rdf:li>
   </rdf:Alt>
  </dc:rights>
 </rdf:Description>
<rdf:Description rdf:about=''
  xmlns:xmpRights='http://ns.adobe.com/xap/1.0/rights/'>
  <xmpRights:Marked>True</xmpRights:Marked>
  <xmpRights:UsageTerms>
   <rdf:Alt>
    <rdf:li xml:lang='x-default'>No reproduction without prior permission</rdf:li>
   </rdf:Alt>
  </xmpRights:UsageTerms>
 </rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>
User avatar
xnview
Author of XnView
Posts: 44759
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.90 Rotate Bug

Post by xnview »

please could you send me sample files to reproduce the problem? And describe the way to reproduce...
Pierre.
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

I've given you the files. Take any photo from your camera.

https://www.sno.phy.queensu.ca/~phil/exiftool/
User avatar
xnview
Author of XnView
Posts: 44759
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.90 Rotate Bug

Post by xnview »

sorry but i don't understand the problem, please describe all steps to reproduce...
Pierre.
obelisk
Posts: 476
Joined: Fri Jan 09, 2009 9:54 am

Re: XnView MP 0.90 Rotate Bug

Post by obelisk »

You use your camera take a jpg + RAW.
use LR to make RAW->jpg in the same folder
This file now looks rotated WRONGLY in XnView .

It looks CORRECT in all other viewers.