Skip to content

Easy image minification

I wrote the `jpegli` CLI tool to quickly reduce the pixel- and byte-size of images for my blog, using JPEGli compression.

JP
Oct 11, 20241 min read

I've not written anything substantial here in some time, and sadly that's not going to change today!

I do have a mini-announcement about a tool I built for image posting here though — I've released the jpegli command line tool which:

  • Ensures the image is no larger than 2048×1920px (maintaining aspect ratio)
  • Compresses the image with the impressive JPEGli algorithm

JPEGli is a (relatively) new way of producing JPEG images but at significantly smaller file sizes (with no real noticeable difference). The end up roughly the size of WebP images, but (being JPEG images) they're readily understood everywhere.

If this sounds useful then you can download for mac/linux/windows from github or you can do any of the following

# With Homebrew installed
brew install jphastings/tools/jpegli

# With Go installed
go install github.com/jphastings/jpegli@latest

Do let me know if you use it, or would like to see some improvements/changes to how it works. It's very basic at the moment!

Did you enjoy this article?

Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.

Across the AtmosphereDiscussions