Imagemagick is a wonderful image manipulation tool.
it is a Free and Open Source Software.
It is a CLI (Command Line Interface) tool. not a GUI one like GIMP,
Photoshop, Inkscape etc..
So what a CLI tool can do on images?
Do you wonder?
The imagemagick can do mostly all the things we do with GIMP.
Add border, colorize, comment, contrast, crop, dispose, dither, emboss,enhance, extract, fill, filter, flip, flop, format, frame, gamma, geometry,mask, monochrome, negate, noise, normalise, blur, resample, resize, rotate,scale, sepia, shade, shadow, sharpen, stretch, strip, thumbnail, tile,transparent, trim, unsharp and more.
well. but why a CLI tool for image manipulation?
CLI always rocks on Bulk Operations.
To convert a colour photo into black and white, we can use GIMP and apply a
filter and do that job.
But, if you want to do the same for 1000 photos?
what you will do?
You will get frustrated if you do it manually.
Let us take a real problem.
Nowadays, we have a lot of Digital Photos from our digital cameras, mobile
Most people have very high resolution cameras like 7 to 10 Megapixel cameras.
The images are high in density and quality.
They are upto 3-5 MB in size each.
the resolution is
This high quality is good for printing.
For viewing in the monitor, 800×600 resolution is enough.
If we reduced the resolution, the file size will be automatically reduced.
the size of a 640×480 image is 57K only.
we can reduce the file size from 5MB to 57K by reducing resolution.
How to reduce the resolution of all the images we have?
going manually is hectic job.
Here the CLI tool rocks.
Imagemagick is software which contains a collection of small tools like
convert, mogrify and more.
To install imagemagick in ubuntu and debian linux,
sudo apt-get install imagemagick
for windows, download from
Let us use mogrify.
mogrify -resize 640×480 -verbose *.jpg
this command will resize all the jpg images in the current folder to 640×480
Now, the file size will be reduced to around 50K.
now you can send mail or upload.
All the original images are affected.
and there is no “Undo”.
so, make sure that a backup is always there.
To know more what imagemagick can do on images,
Powered by ScribeFire.