Image editing with command-line tools

On the Line

© Lead Image © Iryna Denysova, 123RF.com

© Lead Image © Iryna Denysova, 123RF.com

Article from Issue 177/2015
Author(s): , Author(s):

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.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Tweak Images with Converseen
  • Image Wizardry

    The free ImageMagick graphics toolbox brings the feature set of a full-blown image processor to the command line.

  • ExactImage

    Automate image processing with this quick and easy-to-use photo tool suite.

  • ImageMagick

    GIMP isn’t the only option for photo manipulation. ImageMagick, a collection of command-line programs for image processing, can help you process multiple images in one go.

  • Tutorial – ImageMagick

    ImageMagick can do more than just edit existing images. The free software can even be scripted to create simple drawings.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News