Orientation tag and lossless jpeg crop

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

Moderators: helmut, 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 »

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 »

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 »

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

Re: Orientation tag and lossless jpeg crop

Post 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. :-|
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Orientation tag and lossless jpeg crop

Post by xnview »

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

Re: Orientation tag and lossless jpeg crop

Post by marsh »

Fixed in v.1.98b1, I'm very pleased to report.
gleepglop
Posts: 14
Joined: Tue Mar 04, 2014 4:47 pm

Re: Orientation tag and lossless jpeg crop

Post 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.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Orientation tag and lossless jpeg crop

Post by oops66 »

gleepglop wrote:... Undo does not work for the lossless transformations. (It should.)...
+1 I agree
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Orientation tag and lossless jpeg crop

Post by xnview »

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