Want to resize a folder of images for the web? The quickest and easiest way by far is with ImageMagick.
First, make sure you have it installed…
- On Ubuntu/Debian:
sudo apt-get install imagemagick - On Mac OS X:
follow the instructions here - On Windows:
download it from here
This makes commands like convert and mogrify available…
Now open a Terminal and change to the directory containing the files you want to manipulate, then execute the following:
mogrify -resample 72 -quality 66% *.jpg
You can substitute other values if you prefer.. For a complete list of options see the ImageMagick documentation.
Warning, this will overwrite the files in your directory. If you had images in a different format, and/or wanted to convert them to smaller, lossy versions, you could try something like this:
mogrify -resize 25% -quality 66% -format jpg *.png
This will make copies of your resized images next to the originals in that same folder (Windows users may have problems using the * for batch file manipulations however).
That’s it! This really is the quickest and easiest way to resample a whole bunch of images.
0 Comments.