I have an image that has 90 degrees EXIF rotation. Command 'image flip=h' gives following preview:
The preview does not use the EXIF rotation. The flipped image file we end up with, is correctly rotated.
I have an image that has 90 degrees EXIF rotation. Command 'image flip=h' gives following preview:
The preview does not use the EXIF rotation. The flipped image file we end up with, is correctly rotated.
The command needs to be told to apply the exif rotation as well as the flip, if that’s what you want it to do.
Leo, there is an actual difference between the preview and the file we end up with.
In my test:
@Leo Just wondering about this report's status?
I don't think we'll change the way this works.
If the new image comes from the Image Converter, the Replace dialog's new image thumbnail will show the raw image data, from memory rather than disk (since the file doesn't exist on disk yet), without any EXIF rotation applied to it (since there is no EXIF rotation yet; the file hasn't been written to disk with the old EXIF data yet).
If you don't rotate the image, and just flip it, then the EXIF rotation tag is left alone in the resultant file, which will cause it to be rotated (if viewed in something that respects the EXIF rotation tag).
If you do rotate the image, the raw image data is rotated and the EXIF rotation tag is removed entirely from the file.
You'd want to rotate the image before doing the flip here, in any case, else you may end up flipping on the wrong axis (depending on the order the flip and rotation get done).
Just to be sure: In my example, without changing the rotation, the preview differs from the end result. That's really what you want?
Not what we want, but how things work. EXIF rotation is a huge can of worms and trying to change that for an edge case like this would break something else, and then fixing that would break another thing, from experience.
We might take a look into it when we have more time, but I can't promise anything, and my instinct is to leave it alone. The situation requires rotating the image before flipping it anyway, I think, regardless of how the thumbnail in the Replace dialog looks.
Also, doing Image FLIP=h ROTATE=EXIF
gives the desired results, from my tests so far at least (both the file on disk and the one in the Replace dialog thumbnail).
Good enough. Thanks!