Page 1 of 1

Help: Trying to use convert -rotate but have problems

Posted: 2007-01-08T16:03:39-07:00
by SLOB1
Hi!

Im trying to use IM command line under XP to rotate all upright images in a folder, while leaving the rest. But I cant seem to get it to work. Problem is when I run it, all lyingdown images are written over in the conversion.

I've tried this:
C:\bild>convert -rotate "-90<" "*.jpg"

C:\bild>convert -rotate "-90<" *.jpg

C:\bild>convert -rotate "-90<" "*.jpg" "*.jpg"

C:\bild>convert -rotate "-90<" *.jpg *.jpg


Neither of them does the trick.

What am I doing wrong here?

Cheers,
S

Posted: 2007-01-08T18:00:59-07:00
by anthony
you are using convert, you shoud use morgify.
Convert goes one (or more) image(s) to another single image.
Morgify replaces the original image, batch processing a list if images.

See IM Examples, Mogrify, In place Batch processing...
http://www.cit.gu.edu.au/~anthony/graph ... s/#mogrify

You can also put convert in a loop to process images one at a time, whcih gives you more control and more options.

WARNING replaceing original images with a modified one is dangerious, and should be done only with a copy of the original image, just in case.

Posted: 2007-01-09T04:33:03-07:00
by SLOB1
anthony wrote: you are using convert, you shoud use morgify.
Convert goes one (or more) image(s) to another single image.
Morgify replaces the original image, batch processing a list if images.

See IM Examples, Mogrify, In place Batch processing...
http://www.cit.gu.edu.au/~anthony/graph ... s/#mogrify

You can also put convert in a loop to process images one at a time, whcih gives you more control and more options.

WARNING replaceing original images with a modified one is dangerious, and should be done only with a copy of the original image, just in case.


Tnx! And yes, Im working with copies - this convertion is just made for previewing purposes (the mediaplayer Im using, Transonic, cannot properly display upright images).

Cheers,
S