jpegoptim
jpegoptim - utility to optimize/compress JPEG files (by tjko)
pngquant
Lossy PNG compressor — pngquant command based on libimagequant library (by kornelski)
jpegoptim | pngquant | |
---|---|---|
2 | 5 | |
1,660 | 5,366 | |
1.5% | 0.9% | |
5.5 | 3.5 | |
27 days ago | 3 months ago | |
C | C | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
jpegoptim
Posts with mentions or reviews of jpegoptim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-13.
-
Still having fun learning LaTeX, so here is issue #2 (Link in comments.)
I think it's likely the size is in the images - could you possibly call something like jpegoptim on the images as part of the build phase?
-
Image Compression Library
Maybe invoke jpegoptim as a subprocess, since it does lossless optimization of JPEG compression and I don't know of any crates that do that for JPEG.
pngquant
Posts with mentions or reviews of pngquant.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-01.
-
Random Code Inspiration Volume 2
image-shrinker is a simple, easy to use open source tool for shrinking images. Under the hood it uses pngquant, mozjpg, SVGO, and gifsicle. You can also install these tools individually if you need to compress some images. I often use pngquantafter exporting PNGs for web projects from Figma or similar tools. I literally run it like this:
-
keeping collection size down (for ankiweb) when needing lots of image cards/notes
Searching more I found https://pngquant.org/ which I could add to my bulk workflow to make most png's approach the jpeg size.
-
screen capture/snapshot utility with image optimization support/configurability
But this did prompt me to do some searching, and I see https://pngquant.org/ which seems to achieve jpeg like size reduction while maintaining the file as a png. One difference they note is that this method will typically preserve sharp edges better than jpeg (which is probably a strong plus for my type of use case)
- Ask HN: Small scripts, hacks and automations you're proud of?
-
Optimising hundreds of gifs, offline
If use PNG you can use pngquant 2 for instance. More modern image formats may also compress your images further.
What are some alternatives?
When comparing jpegoptim and pngquant you can also consider the following projects:
mozjpeg - Improved JPEG encoder.
ct_temperature - ct_temperature program can convert any combination between °C, °F and K
photon - ⚡ Rust/WebAssembly image processing library
oxipng - Multithreaded PNG optimizer written in Rust
Tesseract4Android - Fork of tess-two rewritten from scratch to support latest version of Tesseract OCR.