Convert, resize, and rotate thousands of PNGs and JPEGs at lightning speed with the help of this tiny yet remarkably efficient CLI tool
What’s new in imgp 2.8:
- Option -M to specify minimum resolution of iamges to process
- Option -H (process hidden files) replaces -d
- Option -d (debug mode) replaces -z
- Option -N and –nearest (nearest neighbour for PNG) replace –nn
Finding image editors with batch capabilities is not particularly difficult. Most of them are actually very good, have modern UIs, and some can even be pretty light on resources.
However, when it comes to dealing with thousands (or even tens of thousands) of pictures, there’s probably nothing faster than imgp.
Don’t be fooled by its name, or the fact that it may be just a tiny command-line tool, as imgp is a lightning-fast, productivity-oriented image resizer and rotator that gets the job done without fuss.
A few basic things about imgp
As mentioned before, imgp is a command-line app that’s capable of resizing and rotating thousands of JPEGs and PNGs. It’s powered by multiprocessing, SIMD parallelism – a smart, adaptive algorithm designed for recursing operations.
The project’s aim? To offer you a better alternative than the Nautilus Image Converter extension.
Features at a glance
So, here’s what imgp can do. It can resize images by percentage or resolution, rotate them clockwise (and counterclockwise) by specific angles, brute force resolutions, optimize images to save more space, limit the processing by minimum image size, convert PNG to JPEG (and vice-versa), and erase exif metadata.
Furthermore, the app can also specify the output JPEG image quality, force smaller to large resizes, process directories recursively, overwrite source images, and it has completion scripts for bash, fish, and zsh.
To learn more about how to use the app, check out the instructions listed on the project’s official GitHub repository, or open a Terminal window and type “imgp -h.” This will display a list of all the available commands and positional and optional arguments.
Verdict
Of course, the app’s biggest selling point (so to speak, as the app is open-source) is its performance. Since it has next to no dependencies and requirements, it’s capable of processing thousands of large images in mere minutes.