Image editing with command-line tools
On the Line

© Lead Image © Iryna Denysova, 123RF.com
Powerful command-line tools offer fast and easy image editing.
When you want to scale, filter, or transform a number of images in the same way, you don't want to open each file in your preferred graphics editor, apply the transformations, then save the new version of the image. Instead, the entire process is far easier at the command line using ImageMagick [1], which is available in the repositories of all distributions. For example, using the command
$ convert -scale 50% image.jpg small/image.jpg
reduces the height and width of image.jpg
by 50 percent and writes the results to a file of the same name in the small
subdirectory.
[...]
Buy this article as PDF
(incl. VAT)