Web Design

Categorized | Multimedia, cli

Batch resize images using the command line in Linux

If you have a ton of images that need resizing, you can do it all with the imagemagick package:

cd /home/user/images
mkdir resized_images
cp /home/user/images/* /home/user/images/resized_images

Now that you have a copy of the files in resized_images, time to resize them all:

mogrify -resize 800 *.jpg

This will resize them all to a width of 800px while keeping the aspect ratio. If you want a fixed image size, you can specify it like this:

mogrify -resize 800×600! *.jpg

Author Profile

T4L ;

Other posts by T4L

Author's web site



Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


2 Comments


  1. cd /home/user/images
    mkdir resized_images
    cp /home/user/images/* /home/user/images/resized_images

    these categories the most to create?

    1
  2. aditya

    Thats an awesome tool. So far, I havnt seen such a quality of the converted images.

    2

2 Trackback(s)

  1. 23 07 2010 : HowtoMatrix » Batch resize images using the command line in Linux
  2. 20 08 2010 : Alex Volkov » Archive » ???????? ?????? ???????? ???????

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>