Problem #1
marsh wrote:
Jpeg lossless transformations directly write to files
I didn't understand what you meant until i made some more testing:
Because i created output files with “-o photo-##.jpg”, the original files remained in an absolutly virginal state! (That's why your answers made me puzzled!) So i tried this simple command you gave in post #2:
and you're right:

the pictures that have to be rotated are rotated
and they are overwrited!
That's problem #1 (
helmut talks about it in his
new topic): unlike the other switches, “-jpegtrans” doesn't need for the “-overwrite” switch, it just does it! by default! But if an output name is specified, the lossless transformation is made on the output file not on the source…

All that is really confusing wether you are a geek or a newbie.
Problem #2
Few switches are compatible with “-jpegtrans”, i mean, let's remember my complete command line in post #3: as soon as i added the “-jpegtrans” switch, “-resize” & “-rmeta” didn't work anymore and “-keepfiledate” gave some strange results…
Solution
So, as for now, it seems that there is no way to “lossless-rotate” and resize in one and only pass.
The better solution i found is to run two commands one after another, as in the exemple below:
- first command to run (lossless rotation)
Code: Select all
nconvert.exe -jpegtrans exif -keepfiledate *.jpg
- second command to run (reducing file size)
Code: Select all
nconvert.exe -ratio -resize 2048 2048 -keepfiledate -rmeta -o photo-##.jpg *.jpg
It works fine but it's not user friendly, maybe we could add this to the bug/feature request list?