Looking for clarification on various rotate image commands

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Looking for clarification on various rotate image commands

Post by mwb1100 »

I'm finding that when I rotate a JPG image using the right-click menu in the file list then posting the JPG online (to forums or whatever) that the uploaded image doesn't show as rotated - at least sometimes. I'm honestly not sure whether it fails to rotate only sometimes or all the time.

I have found that opening the JPG in something like paint.exe, making sure the orientation looks right, then saving the file seems to fix the problem. My understanding is that this is because paint strips the EXIF data (or most of it) when saving a file. So I believe the problem has something to do with the EXIF orientation information. Unfortunately, XY doesn't display the EXIF orientation data in the Info Panel's "Meta" tab (is there a way to configure XY to do so?), so I can't tell if that's what is really happening.

The XY help page for Floating Preview says for Rotate Left and Rotate Right: "Of course, the original image itself is not modified". I assume this is also true for the File List right click menu items with the same name? (i don't find help for those particular menu items at all)

XY also has a script command to rotate images- the help page info for the "rotate" script command makes it sound like this does actually modify the file image data (but not the EXIF data).

I am looking for a way that I can get an image rotated in a way that *any* program that displays it will show it correctly. I hope that XY might be able to help me do that.

Is there a way I can configure XY so that the right-click rotate menu items could do any of the following:

- current behavior (which I think is rotate the image only for XY's display of the image - don't modify the file itself in any way)
- rotate the actual image, but leave the EXIF alone
- rotate the actual image, and clear the EXIF orientation data
- change only the EXIF orientation data to reflect the rotation

On a related note, it would be nice if XY could display more (all?) EXIF data in the info Panel.

highend
Posts: 14551
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Looking for clarification on various rotate image commands

Post by highend »

You can't modify these menu items functionality wise.

If you want something different, script it and bind it e.g. to a custom event action (middle click on the file itself / right click on the line number).

If I rotate a .jpg XY updates the exif metadata with e.g. Orientation : Rotate 90 CW
I am looking for a way that I can get an image rotated in a way that *any* program that displays it will show it correctly
Either that program respects exif data and acts accordingly or you really rotate the image and remove that orientation exif data entry
One of my scripts helped you out? Please donate via Paypal

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Re: Looking for clarification on various rotate image commands

Post by mwb1100 »

Thanks for the reply.
highend wrote: 15 Aug 2023 22:58 Either that program respects exif data and acts accordingly or you really rotate the image and remove that orientation exif data entry
Apparently there is enough enough software around that does not respect the EXIF data (or at least enough that I run into) that I'd like to have XY somehow really rotate and remove the EXIF orientation. I'll try to figure out how to do that with an XY script. I think the "rotate" script command will do the first part.

highend
Posts: 14551
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Looking for clarification on various rotate image commands

Post by highend »

For removing exif data use exiftool (the command line version, not the gui^^)
One of my scripts helped you out? Please donate via Paypal

phred
Posts: 536
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Windows 10 at 100% from Boston USA

Re: Looking for clarification on various rotate image commands

Post by phred »

highend wrote: 15 Aug 2023 23:29 For removing exif data use exiftool (the command line version, not the gui^^)
@ highend- Not to hijack this thread, but why do you suggest the command line version over the gui version?

highend
Posts: 14551
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Looking for clarification on various rotate image commands

Post by highend »

Scripting = automate things => command line tools…
One of my scripts helped you out? Please donate via Paypal

phred
Posts: 536
Joined: 26 Dec 2021 02:10
Location: XY 64bit on Windows 10 at 100% from Boston USA

Re: Looking for clarification on various rotate image commands

Post by phred »

highend wrote: 16 Aug 2023 00:54 Scripting = automate things => command line tools…
Ahhh ... of course. You can't create scripts referencing a GUI.
Thanks.

highend
Posts: 14551
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Looking for clarification on various rotate image commands

Post by highend »

You can't create scripts referencing a GUI
Ofc you could.

But imagine you don't bind such a script to a CFA (mostly for a single selected entry in the list) but to a CFA, button, catalog, UDC, whatever, to allow the script to process multiple files at once. Do you want the script to popup the GUI 10 x times? Not really^^

Back to topic now :mrgreen:
One of my scripts helped you out? Please donate via Paypal

Post Reply