Hacker GitHub

← All repos

mozilla/mozjpeg

View on GitHub ↗ ★ 5,741 C

Improved JPEG encoder.

28 mentions on Hacker News by 24 people: 3 stories, 25 comments · first 2014-03-05 · latest 2025-10-22

Mentions per year 28 mentions · busiest year 2014 (6)
20082026
  1. …for transparency and then compresses it to either JPG using MozJPEG or to PNG using PNGQuant. [1] https://github.com/mozilla/mozjpeg [2] https://pngquant.org
    comment by vunderba · 2025-10-22 · in Scripts I wrote that I use all the time
  2. …but I might do it later. [1] https://libjxl.readthedocs.io/en/latest/api_encoder.html#_CP... [2] https://github.com/mozilla/mozjpeg/blob/6c9f0897afa1c2738d72...
  3. …JPG (for backwards compatibility when there's no AVIF): mozjpeg https://github.com/mozilla/mozjpeg
  4. …WebP implementations. [1] https://research.mozilla.org/2014/03/05/introducing-the-mozj... [2] https://github.com/mozilla/mozjpeg
  5. …it is still a jpeg, it has a much better compatibility story, which the author alluded to. [1] https://github.com/mozilla/mozjpeg
    comment by richeyryan · 2023-12-08 · in It's the future – you can stop using JPEGs
  6. …to libjpeg-turbo if the changes aren't specific to newly-added MozJPEG-only compression code. https://github.com/mozilla/mozjpeg#mozilla-jpeg-encoder-proj...
  7. …to break ABI/API several times over and add incompatible, non-standard format extensions[2]. [1] https://github.com/mozilla/mozjpeg [2] https://en.wikipedia.org/wiki/Libjpeg#History
  8. No. See https://github.com/mozilla/mozjpeg Also, there is a fairly big problem with JPG that the ‘quality’ setting is not calibrated. That is you might look at one image and think it looks fine (which is subjective, depends on what you…
  9. …of the quantization just like this article suggests (9 and 12 vs the libjpeg default of 16). [1] https://github.com/mozilla/mozjpeg [2] https://github.com/mozilla/mozjpeg/blob/5c6a0f0971edf1ed3cf3... [3]…
    comment by jncraton · 2022-06-24 · in Fighting JPEG color banding
  10. …with high density. At least this problem was highlighted by Kornel, one of the mozjpeg author here: https://github.com/mozilla/mozjpeg/issues/76 > the employed solution only modifies first element from [16,17] to [10,16]. Correction: 16…
    comment by homm · 2022-06-24 · in Fighting JPEG color banding
  11. …JPEGs download and decode so fast that the cool 'enhance' animation is rarely seen anymore. [0] https://github.com/mozilla/mozjpeg
    comment by theandrewbailey · 2022-04-27 · in FFmpeg now supports JPEG XL
  12. …greatly improved the state of art jpeg encodig, while maintaining full backwards compatibility https://github.com/mozilla/mozjpeg but there's a limit on what can be done with the primitives that jpeg offers. for example, jpeg is stuck with…
    comment by nextaccountic · 2022-03-11 · in AVIF has landed (2020)
  13. …https://jpeg.rocks/ was posted here: https://news.ycombinator.com/item?id=25712301 This is based on https://github.com/mozilla/mozjpeg , which is a patched version of https://github.com/libjpeg-turbo/libjpeg-turbo
    comment by tehnicaorg · 2021-01-10 · in The Future of Libjpeg-Turbo
  14. …it comes with many settings and routines (both lossless and lossy) that can be configured. [1] https://github.com/mozilla/mozjpeg [2] https://github.com/google/guetzli
  15. …features trellis quantization for JPEG encoding. I wonder how this decoder would do with that? [1] https://github.com/mozilla/mozjpeg
  16. …busercontent.com/assets/72159/11488537/3d... [5] http://www.imagemagick.org/Usage/filter/nicolas/ [6] https://github.com/mozilla/mozjpeg [7] https://twitter.com/vmdanilov/status/745321798309412865
    comment by vladdanilov · 2017-01-10 · in Bringing Wide Color to Instagram
  17. …Another challenge here is to estimate the current image quality and the target error. [1] https://github.com/mozilla/mozjpeg/issues/129
    comment by vladdanilov · 2016-12-28 · in Faster Images using HTTP2 and Progressive JPEGs
  18. How does this compare to mozjpeg [1] ? [1] https://github.com/mozilla/mozjpeg
  19. Has anybody tried mozjpeg? https://github.com/mozilla/mozjpeg It works much better than any of the alternatives listed here, I'm surprised noone mentioned it yet. Here is an image compressed to the same size with mozjpeg…
  20. …of cool tricks (like trellis optimization) in order to get the absolute best quality for the size. https://github.com/mozilla/mozjpeg
  21. …computer-generated graphics, and rarely in photos, and probably that's why nobody cared to fix it. https://github.com/mozilla/mozjpeg/issues/193
  22. Thanks for pointing this out! Filed a bug: https://github.com/mozilla/mozjpeg/issues/139 I said in another comment that we'd release 3.0 tomorrow, we'll probably hold up the release to investigate this.
    comment by joshmoz · 2014-12-29 · in MozJPEG 3.0
  23. mozjpeg has such a bug opened too: https://github.com/mozilla/mozjpeg/issues/8 This isn't exactly new ground beign covered here, nor is it tied to one image format, so I wish people would be a little less NIH-y sometimes...
    comment by Daemon404 · 2014-08-06 · in Using Mozjpeg to Create Efficient JPEGs
  24. …while still presenting itself as libjpeg version 6 to the system, which is very evil. Open Issues: https://github.com/mozilla/mozjpeg/issues/67 https://github.com/mozilla/mozjpeg/issues/21
  25. I believe this merge shows the C code that implements the crush functionality: https://github.com/mozilla/mozjpeg/commit/c31dea21188b48498d...
    comment by briansmith · 2014-03-05 · in Introducing the ‘mozjpeg’ Project