Image Rotate

Whilst tinkering with the ROTATE command I discovered that Image ROTATE=270 HERE REPLACE PRESERVEDATE
[ol]
[li]The image size changes as a result of the action[/li]
[li]@nodeselect is not honoured[/li]
[li]In W7, the image icon shows a lock symbol after the action (not in XP)[/li][/ol]
The change in size is unexpected and it appears to happen with every ROTATE action. I'm guessing that there is a GO REFRESHTHUMBS action under the covers that would explain the @nodeselect. I'm also guessing that the lock symbol in W7 is UAC related.

Regards, AB

  1. Why is the size change unexpected? If it's a JPEG, lossless rotation is only possible with certain images.

(Even with a lossless rotation, I think it's normal for the file size to change slightly with JPEG images, due to the way the data is stored. If you rotate back to the original orientation then you should get back to the original filesize, though, unless there were some extra metadata chunks which Opus stripped out when re-writing the file.)

  1. @nodeselect probably isn't having an effect because the old file is deleted and replaced by a new file.

  2. I'm not sure what that lock icon means. Does the same thing happen if you copy & paste a file into the same folder?

Leo

My surprise is due to confusion between lossless rotate and simply adjusting EXIF information (with EXIFTool). Because so many image viewers, including the built in Opus viewer, automatically adjust image display according to what the EXIF Orientation tag days, it's easy to forget that there is a difference between actual and pseudo rotation.

I'm also unsure about the meaning of the lock icon. It doesn't happen with a simple copy paste.

Regards, AB

Ah okay. Opus respects the EXIF info but when you rotate an image in Opus it really rotates the pixels (and clears the EXIF rotation field).

You could make a button which runs EXIFTool on the selected files from Opus if you want to change the EXIF rotation field and leave the pixels as-is, though.

[quote="leo"]Ah okay. Opus respects the EXIF info but when you rotate an image in Opus it really rotates the pixels (and clears the EXIF rotation field).

You could make a button which runs EXIFTool on the selected files from Opus if you want to change the EXIF rotation field and leave the pixels as-is, though.[/quote]
I regularly use an EXIFTool button to "pseudo-rotate" and it was the comparison between EXIFTool output and DOpus IMAGE ROTATE that caught my eye. I had forgotten (or never previously noticed) that the DOpus operation actually rotates the image. When viewed in DOpus, both results look the same. It's only when viewed in something like Windows Picture and Fax Viewer that the difference becomes obvious.

Regards, AB