Optimizes the compression using ML based metrics in a trial ’n error sorta manner. Everything is free and open source, with absolutely no SAAS lock-ins or vendors.

About

Imager is a tool for automated image compression, and can competitively optimize very noisy, high resolution images into rather “tiny” files.

It's pretty easy too.

Using the CLI interface

Basic:

$ imager -i input/image.jpeg -o output/image.jpeg -f jpeg

Offering JPEG/WebP variants:

$ imager -i input/image.jpeg -O output/dir/ -f jpeg webp

Using the JavaScript non-blocking API

const {ImageBuffer} = require("imager-io");
ImageBuffer
	.open("source-image.jpeg")
	.then(buffer => buffer.opt())
	.then(buffer => buffer.save("result.jpeg"))
	.then(() => console.log("done"));

Image Compression Benchmarks

source        : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 39.00M (4 images)
kraken.io     : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 24M
jpegmini.com  : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 16M
compression.ai: ▇▇▇▇▇▇▇▇ 8.90M
imager        : ▇▇▇▇ 4.20M

Articles