+0
日增长
5,746
stars
439
forks
165
watchers
124
prs
331
issues
15
releases
README
Mozilla JPEG Encoder Project ============================ MozJPEG improves JPEG compression efficiency achieving higher visual quality and smaller file sizes at the same time. It is compatible with the JPEG standard, and the vast majority of the world's deployed JPEG decoders. MozJPEG is a patch for libjpeg-turbo. Please send pull requests to libjpeg-turbo if the changes aren't specific to newly-added MozJPEG-only compression code. This project aims to keep differences with libjpeg-turbo minimal, so whenever possible, improvements and bug fixes should go there first. MozJPEG is compatible with the libjpeg API and ABI. It is intended to be a drop-in replacement for libjpeg. MozJPEG is a strict superset of libjpeg-turbo's functionality. All MozJPEG's improvements can be disabled at run time, and in that case it behaves exactly like libjpeg-turbo. MozJPEG is meant to be used as a library in graphics programs and image processing tools. We include a demo cjpeg command-line tool, but it's not intended for serious use. We encourage authors of graphics programs to use libjpeg's C API and link with MozJPEG library instead. Features Progressive encoding with "jpegrescan" optimization. It can be applied to any JPEG file (with jpegtran) to losslessly reduce file size. Trellis quantization. When converting other formats to JPEG it maximizes quality/filesize ratio. Comes with new quantization table presets, e.g. tuned for high-resolution displays. Fully compatible with all web browsers. Can be seamlessly integrated into any program that uses the industry-standard libjpeg API. There's no need to write any MozJPEG-specific integration code. Releases Latest release Overview of 3.0 features Version 2.0 Announcement Version 1.0 Announcement Compiling See BUILDING. MozJPEG is built exactly the same way as libjpeg-turbo, so if you need additional help please consult libjpeg-turbo documentation.
Top issues
#182Image specific quantization tables 44 comments · 2015-07-20#91consider providing binary releases42 comments · 2014-08-06#382About using both libjpeg-turbo and mozjpeg16 comments · 2020-11-18#181output from `-quality 75` doesn't match default, no flag output.13 comments · 2015-07-03#433jpegtran optimized file size regression between mozjpeg and 3.1 and 4.1.112 comments · 2023-03-14#12Add the capabilities of imgmin for optimizing images.11 comments · 2014-03-06#222Expose option to keep ICC profiles in jpegtran copy10 comments · 2016-08-30#191Input PNG images with ICC profiles don't account for colour profile10 comments · 2015-11-26
Latest release
v4.1.1 v4.1.1 2022-08-15Updated to libjpeg-turbo 2.1.3