ImageOptim-CLI
shrivel
ImageOptim-CLI | shrivel | |
---|---|---|
1 | 2 | |
3,423 | 5 | |
- | - | |
5.4 | 10.0 | |
4 months ago | over 1 year ago | |
TypeScript | C# | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ImageOptim-CLI
-
Losslessly Optimising Images
Disclaimer: There may be newer tools with better support for Linux or Windows, but for macOS users, the venerable "ImageOptim-CLI" project ^1 remains a powerful option.
It wraps ImageOptim, ImageAlpha, and JPEGmini in a single executable, and is able to produce visually-indistinguishable image assets with 60-80% reduction in bytecount, for nearly any corpus of unoptimized files. I've used it to great effect as a webperf consultant. Enjoy! :)
1. https://github.com/JamieMason/ImageOptim-CLI
shrivel
-
Ask HN: What was your last “ah-ha ” moment?
I was trying to create PDF files from photos taken with a phone camera (aka docscanner) and tried to compress as good as possible, when I realized that PNG supports 1 bit mode, with a palette of only 2 entries...
Combined with adaptive thresholding (e.g. Sauvola) this resulted in extremely compressed but still readable images.
I wrote a little C# tool called shrivel for my requirements: https://github.com/sandreas/shrivel/blob/main/shrivel/Comman...
- Losslessly Optimising Images
What are some alternatives?
jpeg2png - silky smooth JPEG decoding
guetzli - Perceptual JPEG encoder
zopfli - Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.
squoosh - Make images smaller using best-in-class codecs, right in the browser.
oxipng - Multithreaded PNG optimizer written in Rust
libavif - libavif - Library for encoding and decoding .avif files
ImageOptim - GUI image optimizer for Mac