Orientation tag and lossless jpeg crop

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Orientation tag and lossless jpeg crop

Post by marsh » Fri Aug 20, 2010 7:30 am

Problem:
When performing a lossless jpeg crop on two images (the first being a landscape rotated by orientation tag to appear as portrait, the second being a portrait with no metadata), the second file will have wrong area removed.

Settings:
[x]Rotate according to orientation tag.
all cache options- off.
v.1.97.6

Two files used:
A. orientedasportrait.jpg
(a landscape with right top orientation;1024x736)
B. portrait.jpg
(a portrait with no metadata;743x1024;almost identical image content as other.)

Method:
1. Select smaller region on orientedasportrait.jpg in upper right quadrant.
2. <ctrl + shift + x>
3. The image is now cropped, as expected.
4. Go to next image using <pg down>
5. portrait.jpg is now displayed (the one without an orientation flag).
6. Select smaller region in upper right quadrant similar to first.
7. <ctrl + shift + x>
8. * A completely different area is cropped. An area from upper left is the result, not from upper right.

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Orientation tag and lossless jpeg crop

Post by marsh » Thu Sep 23, 2010 4:05 am

Jpeg crop treats next file (without Exif rotation) like the previous one which has this data. This occurs with default settings.

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Orientation tag and lossless jpeg crop

Post by marsh » Tue Jan 25, 2011 4:03 am

Up

User avatar
helmut
Posts: 8145
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Orientation tag and lossless jpeg crop

Post by helmut » Wed Jan 26, 2011 10:21 pm

Just a comment (I haven't tried to reproduce the bug, yet).

Uhh, sounds like a severe bug: JPG lossless compression is applied to the original images, so this might destroy users' images. :-|

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

Re: Orientation tag and lossless jpeg crop

Post by xnview » Thu Mar 03, 2011 9:57 am

Pierre.

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Orientation tag and lossless jpeg crop

Post by marsh » Thu Mar 03, 2011 12:33 pm

Fixed in v.1.98b1, I'm very pleased to report.

gleepglop
Posts: 9
Joined: Tue Mar 04, 2014 4:47 pm

Re: Orientation tag and lossless jpeg crop

Post by gleepglop » Tue Mar 04, 2014 4:56 pm

This has destroyed several of my images over the years, as Undo does not work for the lossless transformations. (It should.)

It's still happening in XnView version 2.13, so it's not fixed.

User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Orientation tag and lossless jpeg crop

Post by oops66 » Tue Mar 04, 2014 7:24 pm

gleepglop wrote:... Undo does not work for the lossless transformations. (It should.)...
+1 I agree
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

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

Re: Orientation tag and lossless jpeg crop

Post by xnview » Wed Mar 05, 2014 5:05 am

gleepglop wrote:This has destroyed several of my images over the years
What's happened??
Pierre.

Post Reply