layout |
---|
index.liquid |
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.
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
const {ImageBuffer} = require("imager-io");
ImageBuffer
.open("source-image.jpeg")
.then(buffer => buffer.opt())
.then(buffer => buffer.save("result.jpeg"))
.then(() => console.log("done"));
source : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 39.00M (4 images)
kraken.io : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 24M
jpegmini.com : ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 16M
compression.ai: ▇▇▇▇▇▇▇▇ 8.90M
imager : ▇▇▇▇ 4.20M