Page 1 of 1

Orientation tag and lossless jpeg crop

Posted: Fri Aug 20, 2010 7:30 am
by marsh
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.

Re: Orientation tag and lossless jpeg crop

Posted: Thu Sep 23, 2010 4:05 am
by marsh
Jpeg crop treats next file (without Exif rotation) like the previous one which has this data. This occurs with default settings.

Re: Orientation tag and lossless jpeg crop

Posted: Tue Jan 25, 2011 4:03 am
by marsh
Up

Re: Orientation tag and lossless jpeg crop

Posted: Wed Jan 26, 2011 10:21 pm
by helmut
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. :-|

Re: Orientation tag and lossless jpeg crop

Posted: Thu Mar 03, 2011 9:57 am
by xnview

Re: Orientation tag and lossless jpeg crop

Posted: Thu Mar 03, 2011 12:33 pm
by marsh
Fixed in v.1.98b1, I'm very pleased to report.

Re: Orientation tag and lossless jpeg crop

Posted: Tue Mar 04, 2014 4:56 pm
by gleepglop
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.

Re: Orientation tag and lossless jpeg crop

Posted: Tue Mar 04, 2014 7:24 pm
by oops66
gleepglop wrote:... Undo does not work for the lossless transformations. (It should.)...
+1 I agree

Re: Orientation tag and lossless jpeg crop

Posted: Wed Mar 05, 2014 5:05 am
by xnview
gleepglop wrote:This has destroyed several of my images over the years
What's happened??