November 23, 2008 @ 4:39 am
Batch Resizing Pictures
Well, I had to perform a bunch of resizing for my digital images a few minutes ago. Then I remembered seeing “ImageMagick” when installing Inkscape on Jasper days ago. I’ve used ImageMagick for my first ever development project with my first employer. It was a business card generator, which, fortunately and unfortunately and unsurprisingly didn’t went live. But anyway, I vaguely recall that you could do command line image manipulation with it. So I searched and, yes, there is a command to easily batch resize pictures. So on Terminal (Applications > Accessories > Terminal) do a:
- sudo apt-get install imagemagick
- cd Pictures/ (cd to folder of your images)
- sudo mogrify -resize 800×600 *.jpg
And that’s it! Well at least I don’t need to go Windows XP just to batch resize pictures. Microsoft PowerToys’ Image Resizer is convenient for batch resizing on a Windows and ImageMagick’s mogrify -resize command is equally convenient for batch resizing on Linux (and on any other OS, I guess).
Filed under Geekology Permalink
