Batch processing image files with imgp

Rapid Resizer

© Lead Image © grafner, 123RF.com

© Lead Image © grafner, 123RF.com

Article from Issue 252/2021
Author(s):

In no time at all, imgp can change the resolution of images, as well as convert files from PNG to JPEG, remove metadata, and rotate images.

Suppose you have hundreds or even thousands of photos that you want to present on a web page. If the images use the original camera resolution, they could severely slow down or even paralyze a website populated with this data. Optimizing the images can save bandwidth on the network and space on the storage medium.

With a large number of images, a batch processing tool such as imgp [1] comes in handy. The command-line tool, formerly known as imgd and written in Python, provides functions for resizing images in JPEG and PNG formats, as well as converting from PNG to JPEG, rotating the images, and removing metadata.

Even with thousands of files, imgp does its job at lightning speed. The developer, Arun Prakash Jana, achieves this through multicore processing, an adaptive algorithm, and the Python Pillow library [2].

[...]

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

  • Image Processing with EXIF

    You can rename and modify JPEG files without touching the graphics by manipulating settings in the file header.

  • ExactImage

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

  • Lepton Image Compressor

    Lepton lets you compress your photo files to make room for more.

  • 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.

  • Converseen

    If you have an extensive collection of photos, you will hardly want to edit each photo individually. Converseen lets you rotate, scale, and convert a large number of images in a single run.

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