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.

Pngquant – Lossy PNG compressor

130 pointsby pstadlerover 11 years ago

20 comments

btbuildemover 11 years ago
You should showcase at least a single sample of a compressed vs uncompressed image right there on the first page, before the Features section.
alexdowadover 11 years ago
WOW!!! I just applied this to the (big) PNG sprite files used in a project I am working on now, and the gains in file size were amazing! And with hardly any difference in quality!<p>Who ever said that reading Hacker News was a productivity drain?
评论 #7051270 未加载
leeoniyaover 11 years ago
shameless self-promotion:<p>demo: <a href="http://o-0.me/RgbQuant/" rel="nofollow">http:&#x2F;&#x2F;o-0.me&#x2F;RgbQuant&#x2F;</a><p>repo: <a href="https://github.com/leeoniya/RgbQuant.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leeoniya&#x2F;RgbQuant.js</a><p>* doesnt support alpha channel or dithering (yet)
评论 #7050706 未加载
adamjernstover 11 years ago
pngquant is great. I make an iPhone app that displays transit maps. Transit maps are ideal candidates for quantization (limited color range, large blocks of color that are perfect for RLE) and I saved a lot of file size by quantizing the map tiles. Thanks pngquant!
评论 #7052873 未加载
seanalltogetherover 11 years ago
I&#x27;ve never quite understood how its possible to create better encoders without needing a new decoder on the other end. Can anyone explain how this works? When you&#x27;re writing a png decoder, why wouldn&#x27;t there just be one optimal png encoder to go along with it?
评论 #7051239 未加载
评论 #7051364 未加载
评论 #7051766 未加载
评论 #7051201 未加载
评论 #7051219 未加载
评论 #7052223 未加载
kraken-ioover 11 years ago
As kraken.io, we can safely say that this is indeed an excellent program, and it makes up part of our lossy PNG optimization stack.
chipacaover 11 years ago
How is this different from `pngnq` (that&#x27;s been around for ages)?
评论 #7050605 未加载
评论 #7050890 未加载
faxenoffover 11 years ago
How about Color Quantizer? I use it for years. <a href="http://www.softpedia.com/get/Multimedia/Graphic/Graphic-Others/Color-quantizer.shtml" rel="nofollow">http:&#x2F;&#x2F;www.softpedia.com&#x2F;get&#x2F;Multimedia&#x2F;Graphic&#x2F;Graphic-Othe...</a><p>Offical site <a href="http://x128.ho.ua/color-quantizer.html" rel="nofollow">http:&#x2F;&#x2F;x128.ho.ua&#x2F;color-quantizer.html</a>
xlevusover 11 years ago
Some examples would be nice.
评论 #7050755 未加载
评论 #7050840 未加载
Gigablahover 11 years ago
This is how I use pngquant in my thumbnailing workflow: <a href="https://gist.github.com/gigablah/3110899" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;gigablah&#x2F;3110899</a><p>At 100x100 pixels, I find that this produces small (~8kb) PNG thumbnails which are still sharp with no noticeable color loss.<p>(Disclaimer: I&#x27;m a beginner at nodejs)
pstadlerover 11 years ago
Available in Homebrew:<p><pre><code> brew install pngquant</code></pre>
j_sover 11 years ago
Read more about the details of implementing something like this in C#:<p><a href="http://www.mattwrock.com/post/2011/09/05/Convert-32-bit-PNGs-to-high-quality-8-bit-PNGs-with-C.aspx" rel="nofollow">http:&#x2F;&#x2F;www.mattwrock.com&#x2F;post&#x2F;2011&#x2F;09&#x2F;05&#x2F;Convert-32-bit-PNGs...</a>
kristofferRover 11 years ago
The ImageOptim&#x2F;ImageAlpha OS X apps are fantastic for compressing all kinds of images for the web.<p><a href="http://imageoptim.com/" rel="nofollow">http:&#x2F;&#x2F;imageoptim.com&#x2F;</a> <a href="http://pngmini.com/" rel="nofollow">http:&#x2F;&#x2F;pngmini.com&#x2F;</a>
评论 #7053044 未加载
zw123456over 11 years ago
Very timely, I was just working on a page that had to display complex graphs and the regular PNG&#x27;s were huge. I set the quality to 50% and it reduced the size to about 30% of the original and it still looks good. Thank you!
webjunkieover 11 years ago
Use ImageAlpha as a GUI for OSX. Very nice results!<p><a href="http://pngmini.com/" rel="nofollow">http:&#x2F;&#x2F;pngmini.com&#x2F;</a>
blueskin_over 11 years ago
Lossy PNG compression is like trying to use a Ferrari to pull a 35 tonne trailer.<p>PNG is for graphics; JPEG is for photos.
ericthegoodkingover 11 years ago
I like this small program , great for compressing png files. Congrats dev.
frncscgmzover 11 years ago
Anyone knows of a similar tool for jpeg images?
评论 #7052174 未加载
评论 #7052894 未加载
评论 #7053937 未加载
noivover 11 years ago
Any link to the 2.0 32bit deb?
评论 #7050948 未加载
rockdoeover 11 years ago
The algorithms link is broken.