The command Show VIEWERCMD="open,[path]" opens the file but doesn't automatically rotate the image according to the Exif information if this is set in preferences. I couldn't find a workaround for this because a second line with Show VIEWERCMD=refresh goes back to the previous file.
I'm using this command in a script: ClickData.Func.viewer.Command("open," & cmd.sourcetab.selected(0)). My current workaround is to read the rotation value and rotate the image with a second line: ClickData.Func.viewer.Command("rotate," & rotation) but it's somewhat juddery because the rotation happens after the image was loaded.
Thanks, this will be fixed in the next update.
There are already two toolbar buttons to rotate images manually.
Is there a command to rotate the image according to Exif information, similar to the viewer as described above?
Edit:
Will Image HERE ROTATE=EXIF
do the job?
That would modify the file, not just the orientation in the viewer.
There isn't a command to rotate the viewer to the EXIF orientation without modifying the file, after the image is already loaded. You'd normally just turn on the option in Preferences for that, and the images would open rotated already.
That's ok for me I just want to avoid using another tool to automatically rotate a bunch of jpeg but use DO instead for this task.
Michael