Improved JPEG encoder.
Pull request Compare This branch is 44 commits behind mozilla:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmakescripts
doc/html
java
md5
release
sharedlib
simd
testimages
win
.gitauthors
.gitignore
BUILDING.md
BUILDING.txt
CMakeLists.txt
ChangeLog.md
LICENSE.md
Makefile.am
README-mozilla.txt
README-turbo.txt
README.ijg
README.md
acinclude.m4
bmp.c
bmp.h
cderror.h
cdjpeg.c
cdjpeg.h
change.log
cjpeg.1
cjpeg.c
coderules.txt
configure.ac
djpeg.1
djpeg.c
doxygen-extra.css
doxygen.config
example.c
git-init-svn.sh
jaricom.c
jcapimin.c
jcapistd.c
jcarith.c
jccoefct.c
jccolext.c
jccolor.c
jcdctmgr.c
jcext.c
jchuff.c
jchuff.h
jcinit.c
jcmainct.c
jcmarker.c
jcmaster.c
jcmaster.h
jcomapi.c
jconfig.h.in
jconfig.txt
jconfigint.h.in
jcparam.c
jcphuff.c
jcprepct.c
jcsample.c
jcstest.c
jctrans.c
jdapimin.c
jdapistd.c
jdarith.c
jdatadst-tj.c
jdatadst.c
jdatasrc-tj.c
jdatasrc.c
jdcoefct.c
jdcoefct.h
jdcol565.c
jdcolext.c
jdcolor.c
jdct.h
jddctmgr.c
jdhuff.c
jdhuff.h
jdinput.c
jdmainct.c
jdmainct.h
jdmarker.c
jdmaster.c
jdmaster.h
jdmerge.c
jdmrg565.c
jdmrgext.c
jdphuff.c
jdpostct.c
jdsample.c
jdsample.h
jdtrans.c
jerror.c
jerror.h
jfdctflt.c
jfdctfst.c
jfdctint.c
jidctflt.c
jidctfst.c
jidctint.c
jidctred.c
jinclude.h
jmemmgr.c
jmemnobs.c
jmemsys.h
jmorecfg.h
jpeg_nbits_table.h
jpegcomp.h
jpegint.h
jpeglib.h
jpegtran.1
jpegtran.c
jpegyuv.c
jquant1.c
jquant2.c
jsimd.h
jsimd_none.c
jsimddct.h
jstdhuff.c
jutils.c
jversion.h
libjpeg.map.in
libjpeg.txt
rd_average.sh
rd_collect.sh
rd_collect_sub.sh
rd_plot.sh
rdbmp.c
rdcolmap.c
rdgif.c
rdjpeg.c
rdjpgcom.1
rdjpgcom.c
rdpng.c
rdppm.c
rdrle.c
rdswitch.c
rdtarga.c
structure.txt
tjbench.c
tjbenchtest.in
tjbenchtest.java.in
tjexampletest.in
tjunittest.c
tjutil.c
tjutil.h
transupp.c
transupp.h
turbojpeg-jni.c
turbojpeg-mapfile
turbojpeg-mapfile.jni
turbojpeg.c
turbojpeg.h
usage.txt
wizard.txt
wrbmp.c
wrgif.c
wrjpgcom.1
wrjpgcom.c
wrppm.c
wrppm.h
wrrle.c
wrtarga.c
yuvjpeg.c

README.md

Mozilla JPEG Encoder Project

MozJPEG reduces file sizes of JPEG images while retaining quality and compatibility with the vast majority of the world's deployed decoders.

MozJPEG is based on libjpeg-turbo. It's compatible with libjpeg API and ABI, and can be used as a drop-in replacement for libjpeg. MozJPEG makes tradeoffs that are intended to benefit Web use cases and focuses solely on improving encoding, so it's best used as part of a Web encoding workflow.

MozJPEG is meant to be used as a library in graphics programs and image processing tools. We include a demo cjpeg tool, but it's not intended for serious use. We encourage authors of graphics programs to use MozJPEG's C API 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 using libjpeg.

Releases