Tech News
← Back to articles

Automating Image Compression

read original related products more articles

Automating image compression locally

I recently poked around some command-line tools for compression. There are a lot of options, but the best seem to be pngquant and jpegoptim. They are fairly cross-platform and free. Both big bonuses in my book.

I want to use CLI tools because they:

Work across entire projects, not one file at a time

Are easy to automate (CI, build scripts, pre-deploy steps)

Produce consistent, repeatable results

Are not GUI tools which means no manual exporting required

Compressed using pngquant - 59,449 bytes

Step 1: Install the Tools

macOS (Homebrew)

... continue reading