Batch resize of pictures

I had generated graphics from the Simple Modular Architecture Research Tool (S.M.A.R.T.) in the highest possible resolution. However, later on I needed to scale down the graphics.

How to do that? I searched a bit and I found these explanations about the convert command, part of Imagemagic. Very useful tips there, however I needed something that will batch process a bunch of picture files. The command mogrify, also part of Imagemagic, is what I needed.

Just go to the folder with the pictures and do:

mogrify -resize 50% *

This will resize in half everything in the current folder, overwriting the original files. In case, you may need the original files later, better back them up. Also, Imagemagic comes with the standard Slackware installation.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s