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.

MozJPEG 3.0

290 pointsby ssttooover 10 years ago

12 comments

georgefover 10 years ago
I&#x27;m reminded here that JPEG includes arithmetic encoding as part of the standard, but almost everyone uses Huffman because up until a couple years ago arithmetic encoding was patent-encumbered (the patents are expired now). Is anyone aware of a study like Mozilla&#x27;s that considers JPEG-with-arithmetic-encoding? Or perhaps it does, and I failed to notice?<p>Most competing file formats seem to beat JPEG by only a slim margin, and what I&#x27;ve read on arithmetic encoding suggests it gives a ~5-10% gain, which would make that difference slimmer still, perhaps vanishing into the uncertainty of the usefulness of these quality benchmarks. Of course, there would be inertia to overcome to support it, as with a new format, but recompiling everyone&#x27;s libjpeg is surely less work than adding support for whole new file formats. At the very least, it seems there might be a better effort&#x2F;payoff ratio.
评论 #8809157 未加载
评论 #8808683 未加载
评论 #8808267 未加载
jacquesmover 10 years ago
JPEG is absolutely awesome and this is a valuable addition.<p>I was using the very first release of the source back in the stone age or so. We took passport photo images with a video camera at reasonably high resolution and then scaled them down and compressed with PCX to save on storage.<p>Quality after compression was absolutely terrible.<p>Then Tom Lane came along with libjpeg and suddenly the quality was better than what we could print!
评论 #8807748 未加载
joshmozover 10 years ago
FYI, I plan to officially release mozjpeg 3.0 tomorrow.<p>Thanks for the writeup and your work on this release, Kornel!
评论 #8810930 未加载
评论 #8808411 未加载
评论 #8808026 未加载
BorisMelnikover 10 years ago
beautiful! I had this file sitting on my desktop in compressed JPEG format. Text JPEGs are inherently bad and spit out ugly pics:<p>Original - 327kb - <a href="http://i.imgur.com/DTxTcLp.jpg" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;DTxTcLp.jpg</a><p>MozJPEG - 127kb - <a href="http://i.imgur.com/jVESWGS.jpg" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;jVESWGS.jpg</a><p>Stared at both side by side and really struggled to tell the difference. Great job!<p>Sorry WebP is great but I just don&#x27;t see it getting adapted unless all browsers get on board as well as big software. JPEG is practically a household name, photographers, artists, insta-grammers,all know what it is and short of a mild revolution I just don&#x27;t see it.
评论 #8807554 未加载
评论 #8807784 未加载
sandstromover 10 years ago
Deringing (removing &#x27;noise&#x27; around text and similar shapes in jpeg-compressed images) is awesome only in itself.<p>Hopefully this will find its way into image authoring tools.
评论 #8807208 未加载
leeoniyaover 10 years ago
would adding dithering support to the encoder help with gradient smoothness? i know it helps a lot with non-compressed formats in addition to shrinking filesize (though it may not be the case with jpeg compression). you can toy with the params [1] and see that even dropping target palette color count by &gt;50%, still gets good results with a dithering kernel selected. repo here [2], btw.<p>[1] <a href="http://o-0.me/RgbQuant/" rel="nofollow">http:&#x2F;&#x2F;o-0.me&#x2F;RgbQuant&#x2F;</a><p>[2] <a href="https://github.com/leeoniya/RgbQuant.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leeoniya&#x2F;RgbQuant.js</a>
评论 #8807440 未加载
Cherianover 10 years ago
Thanks so much for this piece of art.<p>I’ve been using JPEGMini trial [<a href="http://www.jpegmini.com/" rel="nofollow">http:&#x2F;&#x2F;www.jpegmini.com&#x2F;</a>] for a while. How does this compare?
评论 #8807886 未加载
shmerlover 10 years ago
So does it mean that Daala compression can be used to produce some new image format when it will be ready (similarly to how WebP was produced from VP8)?
评论 #8807442 未加载
CookWithMeover 10 years ago
Since it&#x27;s mentioned in the article: Does anyone have experience with lossy png tools?<p>I&#x27;m currently working on a project that needs alpha channels. I&#x27;ve been optimizing the images with pngcrush, which helped (interestingly, images put out with Adobe products where already pretty optimized, but I&#x27;m generating thumbnails locally with sips, where pngcrush often saves 60+%).<p>Still, for photographic images, file size often remains multiple times larger than what I&#x27;d expect from a high-quality JPEG.
评论 #8809283 未加载
评论 #8810850 未加载
评论 #8809386 未加载
pwr22over 10 years ago
Looks awesome but I hope there is a better naming convention for the quant tables than<p><pre><code> -quant-table 2 </code></pre> etc
annand_virkover 10 years ago
This is totally awesome. Nothing bothers me more than seeing that awkward noise around images I export from Photoshop. Someone mentioned this already, but I hope this finds its way into the apps I use.<p>On a totally unrelated note, Denny, the dude that dropped the first comment on that post, is not a stand-up guy.
Timmmmmmover 10 years ago
I have a feeling that nobody would really bother with WebP for its compression, but does JPG&#x2F;PNG have:<p>* Lossy compression with alpha channels. * Efficient lossless compression of photo-like images. * Efficient compression of photo-like and diagram-like images in the same format (and in the same image, e.g. screenshots containing photos). * Good lossy compression of diagram-like images.<p>No.
评论 #8807428 未加载
评论 #8807413 未加载