Images

Crunch – lossy PNG image file optimization

In Operation

Crunch is very simple to use. We can process images by simply providing one or more PNG image paths as arguments:

$ crunch [image path 1]...[image path n]

We can use wildcards. For example to process all the images in our Images folder, we can issue the command:

$ crunch ~/Images/*.png

Crunch compressing 5 PNG images

As the above image shows, the program reports the % of original image size, the optimized image file path, and the final optimized image size in bytes. We’re showing the directory contents using a human-readable format. Crunch doesn’t offer an option to overwrite the original images.

While the optimizing is CPU intensive, Crunch spawns multiple processes when multiple images are optimized. This parallel processing hugely reduces the time to process a directory of images with a multi-core machine. We tested the software on a 12 core processor.

Let’s show you a couple of the images.

Original image: Size 296K

Processed image: Size 95K

Original image: Size 335K

Processed image: Size 118K

Summary

Crunch is a useful tool to compress PNGs. The heavy lifting is performed by zopflipng and pngquant.

The developer doesn’t have any plans to support other image types such as JPEGs. So you’ll need to use a different program if you want to optimize non PNG images.

For Linux, Crunch is strictly a CLI affair. There is a GUI program available but it’s for macOS only.

LinuxLinks is always conscious of bandwidth. Unlike many websites, we compress images with lossy compression.

Website: github.com/chrissimpkins/Crunch
Support:
Developer: Christopher Simpkins
License: MIT License

Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary


Related Software

Console Based Image Compression Tools
MozJPEGMozilla JPEG Encoder Project
pngquantUtility and a library for lossy compression of PNG images
SVGONode.js library and command-line application for optimizing SVG files
OxipngMultithreaded PNG optimizer, forked from Optipng
libjxlReference implementation of JPEG XL
libjpeg-turboJPEG image codec
QOIThe Quite OK Image Format
YOGAYummy Optimizer for Gorgeous Assets
pngcrushOptimizer for PNG files
jpegoptimOptimize JPEG files. Lossless and lossy compression available
OptiPNGAdvanced PNG optimizer
GuetzliPerceptual JPEG encoder with excellent compression density at high quality
ECTFast and effective C++ file optimizer
CrunchLossy PNG image file optimization
zopflipngPNG optimisation tool using zopfli
JPEG ArchiveUtilities for archive JPEGs for long term storage
optimiztCLI image optimization tool
picoptMulti format lossless image optimize
tinifierCLI tool for compressing images using the TinyPNG API

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments