Apr 13

Mogrify - Unix command

Tag: UnixMichael Lind Mortensen @ 8:13 am

I just found one of the nicest unix commands I’ve had the pleasure of using. I recently had to convert a large number of images from one format to another (due to a crappy image display device without PNG support), so I stumbled onto this little wonder.

It’s very simple to use. So for example if you wanted to convert a directory of PNG images to JPEG, just do:

# mogrify -format jpeg *.png

Simple right?

It can also be used for a bunch of other stuff - like resizing pictures

# mogrify -resize 800x600! somepicture.tiff

Actually you can find a full set of examples here:

http://linux.about.com/od/commands/l/blcmdl1_mogrify.htm

So there you have it - juts thought I would share.