shrivel
jpeg2png
shrivel | jpeg2png | |
---|---|---|
2 | 2 | |
5 | 469 | |
- | - | |
10.0 | 10.0 | |
over 1 year ago | over 3 years ago | |
C# | C | |
Apache License 2.0 | GNU General Public License v3.0 only |
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
jpeg2png
-
Google Chrome Is Already Preparing To Deprecate JPEG-XL (~3x smaller than JPEG, HDR, lossless, alpha, progressive, recompression, animations)
That's not necessarily the case with the jpeg2png decoder, but it's been a while since I used it, and I'm not able to test right now. The PNG files will be smaller than with the usual JPEG decoding process, at least.
-
Losslessly Optimising Images
This tool optimises blocky JPEGs for a better viewing pleasure: https://github.com/victorvde/jpeg2png
> jpeg2png finds the smoothest possible picture that encodes to the given JPEG file.
What are some alternatives?
guetzli - Perceptual JPEG encoder
ImageOptim-CLI - Make optimisation of images part of your automated build process
squoosh - Make images smaller using best-in-class codecs, right in the browser.
PNG-spec - Maintenance of the PNG specification
zopfli - Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.
Zpng - Better lossless compression than PNG with a simpler algorithm
oxipng - Multithreaded PNG optimizer written in Rust
libavif - libavif - Library for encoding and decoding .avif files