TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pngquant – Lossy PNG compressor

130 点作者 pstadler超过 11 年前

20 条评论

btbuildem超过 11 年前
You should showcase at least a single sample of a compressed vs uncompressed image right there on the first page, before the Features section.
alexdowad超过 11 年前
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 未加载
leeoniya超过 11 年前
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 未加载
adamjernst超过 11 年前
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 未加载
seanalltogether超过 11 年前
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-io超过 11 年前
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.
chipaca超过 11 年前
How is this different from `pngnq` (that&#x27;s been around for ages)?
评论 #7050605 未加载
评论 #7050890 未加载
faxenoff超过 11 年前
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>
xlevus超过 11 年前
Some examples would be nice.
评论 #7050755 未加载
评论 #7050840 未加载
Gigablah超过 11 年前
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)
pstadler超过 11 年前
Available in Homebrew:<p><pre><code> brew install pngquant</code></pre>
j_s超过 11 年前
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>
kristofferR超过 11 年前
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 未加载
zw123456超过 11 年前
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!
webjunkie超过 11 年前
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_超过 11 年前
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.
ericthegoodking超过 11 年前
I like this small program , great for compressing png files. Congrats dev.
frncscgmz超过 11 年前
Anyone knows of a similar tool for jpeg images?
评论 #7052174 未加载
评论 #7052894 未加载
评论 #7053937 未加载
noiv超过 11 年前
Any link to the 2.0 32bit deb?
评论 #7050948 未加载
rockdoe超过 11 年前
The algorithms link is broken.