Hi imagemagick users

I've done some more testing using the rotate flag and I've found that when
using -rotate '90<' all the images that should be portrait go landscape and
vice versa. When using -rotate '90>' nothing happens i.e. the images don't
rotate at all, whether they are landscape or portrait. Odd...

Any ideas? It almost seems like the > flag is broken?

Any other way for me to make landscape images portrait?

Regards

Hagen 

"Hagen Rode" on  wrote...
| 
| 
| Hi there
| 
| I use imagemagick to convert PDF or PS files into JPGs with the 
| following
| command: 
| "Convert -strip -scene 1 -quality '90%' -density '65%' Filepath 
| Folderpath/Image%03d.jpg"
| 
| Is there any parameter I can pass convert to tell it to always make 
| the images portrait and never landscape? Even if the PDF doc contains 
| landscape images?
| 
| Many thanks
| 
| Hagen
| 

Yes there is. Use   -rotate '-90>'

The '<' flag to rotate means to only rotate if it is wider than it is tall.
The -90 means rotate anti-clockwaise, use 90 for clockwise.

NOTE: this angle of rotate may seem inverted in the mathematical sense,
until you realise that the y-axis of images is also negated. That is the
Y-axis goes from 0 at the top and positive downward. Thus rotation angles
are inverted.

I have added the above two items to the IM examples on rotation...
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/distorts/#rotate

You may also like to look at rectangular (simple) rotates...
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/distorts/#rect_rotates


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to