Help: Trying to use convert -rotate but have problems

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
SLOB1

Help: Trying to use convert -rotate but have problems

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
SLOB1

Post 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
Post Reply