shrivel
ImageOptim-CLI
shrivel | ImageOptim-CLI | |
---|---|---|
2 | 1 | |
5 | 3,423 | |
- | - | |
10.0 | 5.4 | |
over 1 year ago | 4 months ago | |
C# | TypeScript | |
Apache License 2.0 | MIT License |
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.
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
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
What are some alternatives?
guetzli - Perceptual JPEG encoder
jpeg2png - silky smooth JPEG decoding
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