Page 1 of 1

Launching 'JPEG Lossless EXIF rotation' from command line?

Posted: Tue Aug 05, 2008 12:21 pm
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..

Posted: Tue Aug 05, 2008 12:48 pm
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?

Posted: Tue Aug 05, 2008 12:56 pm
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!

Posted: Tue Aug 05, 2008 5:15 pm
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.