3 ms·
Ask HN: What's the Best Tool(s) for Optimizing JPEG, PNG, MP4 and GIF?
What's the best tool(s) for optimizing/shirinking lossy the folling formats JPEG, PNG, MP4 (to WEBM/AV1) and GIF (convert GIF to WEBM/VP9 maybe?)?
Thanks!
- antoineMoPa 7y agoYou can convert gifs to video with ffmpeg: ffmpeg -i image-%04d.png anim.mp4 You can use imagemagick ('convert' command) to make small gifs with dither, color reduction: convert image-*.png +dither -colors 10 dither.gif convert image-*.png -ordered-dither 2x2 ordered_dither2.gif convert image-*.png -ordered-dither 4x4 ordered_dither4.gif convert image-*.png -colors 10 less_colors.gif
- runjake 7y agoOn macOS GUI, I like ImageOptim. On Linux/macOS CLI, I like ffmpeg and ImageMagick, as appropriate.
- actionowl 7y agoI use pngcrush, jpegtran, and gifsicle
- delduca 7y agoI ended up using the set ect & leanify for png and jpeg and gifsicle for gif. I wrote a small docker[1] image to setup and compile the tools. Thanks for your feedback! 1 - https://github.com/skhaz/compression-tools/ https://github.com/skhaz/compression-tools/
- theriddlr 7y agoI encode MP4s with the H265 codec. For GIFs I use Photoshop's Export with a preview and reduce the colours until the quality starts to degrade noticeably.