Skip to content

mozilla/mozjpeg

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 26, 2023 21:52
August 26, 2023 21:52
August 26, 2023 21:52
August 26, 2023 21:49
win
February 3, 2023 20:54
August 26, 2023 21:49
July 10, 2017 11:58
February 3, 2023 20:54
October 12, 2023 17:52
November 11, 2018 16:13
October 27, 2020 13:32
October 14, 2021 11:40
July 21, 2021 22:39
October 27, 2020 13:32
November 5, 2020 16:04
December 13, 2017 21:48
March 9, 2022 12:58
November 11, 2018 16:13
November 11, 2018 16:13
January 24, 2015 16:28
February 3, 2023 20:54
November 11, 2018 16:13
February 25, 2021 21:44
February 3, 2023 20:54
February 3, 2023 20:54
December 23, 2017 01:29
February 3, 2023 20:54
September 4, 2023 15:58
February 3, 2023 20:54
August 26, 2023 21:52

Mozilla JPEG Encoder Project Build Status

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

Compiling

See BUILDING. MozJPEG is built exactly the same way as libjpeg-turbo, so if you need additional help please consult libjpeg-turbo documentation.