encyclopegia.org

libjpeg

libjpeg is a free library with functions for handling the JPEG image data format. It implements a JPEG codec (encoding and decoding) alongside various utilities for handling JPEG data. It is written in C and distributed as free software together with its source code under the terms of a custom permissive (BSD-like) free software license, which demands attribution. The original variant is maintained and published by the Independent JPEG Group (IJG). Meanwhile, there are several forks with additional features. JPEG JFIF images are widely used on the Web. The amount of compression can be adjusted to achieve the desired trade-off between file size and visual quality.

libjpeg is a free library with functions for handling the JPEG image data format. It implements a JPEG codec (encoding and decoding) alongside various utilities for handling JPEG data. It is written in C and distributed as free software together with its source code under the terms of a custom permissive (BSD-like) free software license, which demands attribution. The original variant is maintained and published by the Independent JPEG Group (IJG). Meanwhile, there are several forks with additional features. JPEG JFIF images are widely used on the Web. The amount of compression can be adjusted to achieve the desired trade-off between file size and visual quality. ==Utilities== The following utility programs are shipped together with libjpeg: cjpeg and djpeg: for performing conversions between JPEG and some other popular image file formats. rdjpgcom and wrjpgcom: for inserting and extracting textual comments in JPEG files. jpegtran: for transformation of existing JPEG files. ===jpegtran=== The command-line program jpegtran provides several features for reformatting and recoding the representation of the DCT coefficients, for transformation of actual image data and for discarding auxiliary data in JPEG files, respectively. The transformations regarding the representation of the coefficients comprise: optimisation of the Huffman coding layer of a JPEG file to increase compression, conversion between progressive and sequential JPEG formats, conversion between Huffman and arithmetic coding in the entropy coding layer. These transformations are each completely lossless and reversible. The transformations on the image data comprise: eliminate non-standard application-specific data inserted by some image programs, perform certain transformations on a file, such as: discarding of colour channels (conversion to greyscale), rotating and flipping in steps of 90 degrees, cropping or joining at image block borders (every 8×8 or 16×16 pixels), rescaling. These are lossless and reversible only regarding the image data that is kept. Reencoding with repeated lossy quantisation of the image data (generation loss) does not take place. ==History== The JPEG implementation of the Independent JPEG Group (IJG) was first publicly released on 7 October 1991 and has been considerably developed since that time. The development was initially mainly done by Tom Lane. The open-source implementation of the IJG was one of the major open-source packages and was key to the success of the JPEG standard. Many companies incorporated it into a variety of products such as image editors and web browsers. For version 5, which was released on September 24, 1994, the whole code base was rewritten. It introduced the utility programs rdjpgcom and wrjpgcom for handling embedded text comments. The version 6 from 2 August 1995 came with support for progressive JPEG and for the first time with the utility program jpegtran. This utility was extended with features to rotate and flip images and grayscale reduction in version 6b. ==Versions== ==Forks== Well-known forks are libjpeg-turbo, which optimises for speed of execution, and MozJPEG, which optimises for smaller file sizes. There is also a similarly named library from the ISO, which aims to be a complete implementation of JPEG, JPEG XT and JPEG LS standards. ===libjpeg-turbo=== libjpeg-turbo is a fork of libjpeg that uses SIMD instructions to accelerate baseline JPEG encoding and decoding. Many projects are now using libjpeg-turbo instead of libjpeg, including popular Linux distributions (Fedora, Debian, Mageia, openSUSE, ...), Mozilla, and Chrome. Apart from performance, some projects have chosen to use libjpeg-turbo because it allows them to retain backward ABI compatibility with the older libjpeg v6b release. libjpeg v7, v8 and v9 broke ABI compatibility with prior releases. libjpeg-turbo implements the standard-compliant arithmetic coding and lossless crop features seen in libjpeg v7. It can also be configured to be compatible with the libjpeg v7 or v8 ABI, but it does not implement DCT scaling and the proprietary SmartScale, which builds on DCT scaling. libjpeg-turbo chooses not to support SmartScale, because it is not an ITU-T standard and because their own research finds it (and DCT scaling) ineffective. By extension, since the only major new feature in libjpeg v9 is specific to the SmartScale format, the libjpeg-turbo Project has chosen to forgo emulating libjpeg v9. Since 2019, libjpeg-turbo is one of the two JPEG reference implementations, available as ISO/IEC 10918-7 and ITU-T T.873. The other reference implementation is ISO libjpeg which also includes support for JPEG XT and JPEG LS. ==See also== Lossless editing The Guetzli JPEG encoder ==References== ==External links== JPEG FAQs

References

  1. libjpeg · retrieved 2026-11-23 · rev 1362127191
    Cite this reference

    MLA "libjpeg." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1362127191. Accessed 24 November 2026.

    Chicago "libjpeg." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1362127191.

    APA encyclopegia.org. (2026). libjpeg. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1362127191

Cite this article

MLA

"libjpeg." encyclopegia.org, 2026, https://encyclopegia.org/wiki/libjpeg. Accessed 24 November 2026.

Chicago

"libjpeg." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/libjpeg.

APA

encyclopegia.org. (2026). libjpeg. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/libjpeg

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date1991-10-07Wikipedia
release date1994-09-24Wikipedia
definitiona free library with functions for handling the JPEG image data format.article body
release date7 October 1991article body
release dateSeptember 24, 1994article body
date mentioned2 August 1995article body
year mentioned2019article body

Related articles

Ulrich Diesing

stub · references available

Knox County

stub · references available

Angelika Hurwicz

stub · references available

Harry Waldau

stub · references available

Wisp

stub · references available

Hans Rupprecht Goette

stub · references available

Vimalakirti Sutra

stub · references available

Kaspar Deutschenbaur

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1362127191 · 0.55 · snapshot libjpeg-015840-59553f6155b63a8f · QID Q131741

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.