David A Roberts

Batch resizing a directory of images in Linux with ImageMagick

To replace all JPEGs in a directory with resized versions:

mogrify -resize 720x576 *.jpg

Note that this will retain the aspect ratio, such that the image is scaled so it will fit inside a box of the given dimensions. To force the image to be stretched to the given dimensions instead:

mogrify -resize 720x576! *.jpg

[novell.com]


blog comments powered by Disqus

Search

Loading...


Random Quote

Loading...



© 2007–2010 David A Roberts. Valid XHTML & CSS. Entries (RSS) & Comments (RSS). Source code.