TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What's the Best Tool(s) for Optimizing JPEG, PNG, MP4 and GIF?

4 pointsby delducaover 5 years ago
What&#x27;s the best tool(s) for optimizing&#x2F;shirinking lossy the folling formats JPEG, PNG, MP4 (to WEBM&#x2F;AV1) and GIF (convert GIF to WEBM&#x2F;VP9 maybe?)?<p>Thanks!

4 comments

antoineMoPaover 5 years ago
You can convert gifs to video with ffmpeg:<p><pre><code> ffmpeg -i image-%04d.png anim.mp4 </code></pre> You can use imagemagick (&#x27;convert&#x27; command) to make small gifs with dither, color reduction:<p><pre><code> 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</code></pre>
theriddlrover 5 years ago
I encode MP4s with the H265 codec. For GIFs I use Photoshop&#x27;s Export with a preview and reduce the colours until the quality starts to degrade noticeably.
actionowlover 5 years ago
I use pngcrush, jpegtran, and gifsicle
评论 #21781841 未加载
runjakeover 5 years ago
On macOS GUI, I like ImageOptim.<p>On Linux&#x2F;macOS CLI, I like ffmpeg and ImageMagick, as appropriate.