Rotate several pictures

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
ngocPower

Rotate several pictures

Post by ngocPower »

Hi guys,

I would like to resize and rotate from Exif on my pictures.

I do it by xnview and when i record by a script, i obtain this

Code: Select all

"C:\Program Files\XnView\nconvert.exe" -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o D:\test\%%.jpg -ratio -rtype lanczos -rflag orient -resize 800 600 "D:\source\P1000058.jpg" "D:\source\P1000059.jpg" "D:\source\P1000060.jpg"
The operation is ok, my pictures are resized et rotated.

When i try to execute directly this script, the resize is ok but not rotate :S

Any suggestions?

I have nconvert v5.10

Thanks for help,
ngocPower

Post by ngocPower »

Further details:

When i selected pictures in Xnview. The pictures are already rotate.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Rotate several pictures

Post by xnview »

Strange in your script, there is no -rotate...
Pierre.
u0206397
Posts: 3
Joined: Sat Apr 21, 2012 2:16 pm

Re: Rotate several pictures

Post by u0206397 »

I suspect the TS may need to run nconvert -jpegtrans exif separately to rotate images based on EXIF data. Resizing can be done before or after this rotation. See: http://newsgroup.xnview.com/viewtopic.p ... 63#p102608
Post Reply