From 107fa8401286374a5dc86b3ba3a8832f3bb26712 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Fri, 11 Oct 2024 10:34:03 +0100 Subject: [PATCH] JPEGli mini article --- content/posts/releases/jpegli/index.md | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 content/posts/releases/jpegli/index.md diff --git a/content/posts/releases/jpegli/index.md b/content/posts/releases/jpegli/index.md new file mode 100644 index 00000000..db35b90e --- /dev/null +++ b/content/posts/releases/jpegli/index.md @@ -0,0 +1,30 @@ +--- +title: "Easy image minification" +emoji: 🌇 +date: 2024-10-11T10:24:33+01:00 +summary: I wrote the `jpegli` CLI tool to quickly reduce the pixel- and byte-size of images for my blog, using JPEGli compression. +tags: +- JPEGli +- CLI +- code +--- +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`](https://github.com/jphastings/jpegli) command line tool which: + +- Ensures the image is no larger than 2048×1920px (maintaining aspect ratio) +- Compresses the image with the impressive [JPEGli](https://opensource.googleblog.com/2024/04/introducing-jpegli-new-jpeg-coding-library.html) 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](https://github.com/jphastings/jpegli/releases) or you can do any of the following + +```bash +# With Homebrew installed +brew install jphastings/tools/jpegli + +# With Go installed +go install github.com/jphastings/jpegli@latest +``` + +Do [let me know](/standing-invitation) if you use it, or would like to see some improvements/changes to how it works. It's very basic at the moment!