pngquant
jpegoptim
pngquant | jpegoptim | |
---|---|---|
5 | 2 | |
5,028 | 1,524 | |
- | - | |
5.1 | 5.4 | |
17 days ago | 14 days ago | |
C | C | |
GNU General Public License v3.0 or later | 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.
pngquant
-
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.
jpegoptim
-
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.
What are some alternatives?
oxipng - Multithreaded PNG optimizer written in Rust
photon - ⚡ Rust/WebAssembly image processing library
3d-game-shaders-for-beginners - 🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
mozjpeg - Improved JPEG encoder.
flameshot - Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
the-codex - A troff version of "the codex" a Linux "zine" created by Kenneth John Odle.
Tesseract4Android - Fork of tess-two rewritten from scratch to support latest version of Tesseract OCR.
zettelkasten - Creating notes with the zettelkasten note taking method and storing all notes on github
image - Encoding and decoding images in Rust
dotfiles - ben's dotfiles
toojpeg - A JPEG encoder in a single C++ file