marți, 18 decembrie 2012

ImageMagick resize with preserve aspect ratio.

ImageMagick is used to change images.

In this case I will show how to resize images and preserve aspect ratio:

...with height: 600 pixels

convert  -resize x600 *.png

...with width: 600 pixels

convert  -resize 600x *.png

If you know more about ImageMagick send me one email.

2 comentarii:

ssieb spunea...

ImageMagick preserves the aspect ratio by default, unless you use the ! option. See this page for more details:

Catalin George Festila spunea...

I use a old Fedora distro (because my hardware is old). I think the ImageMagick is old to :)

Trimiteți un comentariu