Launching 'JPEG Lossless EXIF rotation' from command line?

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
jassska

Launching 'JPEG Lossless EXIF rotation' from command line?

Post by jassska »

Are there any command line switches to XnView editing functions like Lossless EXIF rotation for JPEG images?

What I would need is to be able to launch xnview with command line parameters from another application and automatically rotate my image losslessly according to its EXIF data. So something like this:
"C:\Program files\XnView\xnview.exe" -JPEGlosslessEXIF [image path] ?


Similar switches for other functions as well would be useful sometimes..
jassska

Post by jassska »

OK, found a solution...the nconvert of course :?

"C:\Program files\XnView\nconvert.exe" -jpegtrans exif [image path]

The only problem is this messes up the timecodes (Created, Edited).
So is there still a way to set nconvert not to change those?
jassska

Post by jassska »

And the final solution:

"C:\Program Files\XnView\nconvert.exe" -keepfiledate -jpegtrans exif [image path]

...guess I should have read the -help more carefully :D

Thanks for the fantastic program!
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Good that you have found the solution using nconvert yourself, jassska. :-)

The XnView command line is very limited, but with nconvert you can do almost any transformations like resizing, format conversion, adding text, adding watermark, and much more.
Post Reply