36.1 ImageMagick

20190629 ImageMagick is a command line tool for transforming images. By combining digital image processing operations as a series of commands it provides a powerful ability to build image processing pipelines which can then be easily repeated. In contrast, graphical interfaces can sometimes become a burden, often requiring fiddly and manual interactions that do not have the precision and repeatability offered by ImageMagick.

ImageMagick provides the following commands:

Common operations include resize, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

The basic command line will look something like the following which takes an input image file, resizes it to 25% of the original size, converts black to white, and writes the resulting image to the output file:

convert input.jpg -resize 25% -fill white -opaque black output.jpg

ImageMagick Tricks by Sohail Salehi. 230 pages published by PACKT Publishing, 2006, ISBN 1904811868, available from http://www.packtpub.com/imagemagick/book, is a useful guide to using ImageMagick. It provides a tutorial like presentation illustrating many trick and tips.



Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.