FormatSwap › Formats › JPEG
The JPEG format
Older than the web as most people know it, and still the one photo format that never fails.
- Full name
- Joint Photographic Experts Group
- Appeared
- 1992
- File extensions
- .jpg, .jpeg
- Our verdict
- Keep it See why
History
Why it was invented
In 1991, Gregory Wallace of Digital Equipment Corporation summed up the problem JPEG was meant to solve. Digital images were rare on ordinary computers, and “the key obstacle for many applications is the vast amount of data required to represent a digital image directly”.[1] A single colour picture at TV resolution took about a million bytes, and 35 mm film resolution needed ten times that.[1]
Compression alone wasn't enough, because equipment from different makers also had to understand one another. Wallace pointed to the Group 3 fax standard as a “dramatic example” of what a shared method could achieve, but fax handled only black-and-white images.[1] The Joint Photographic Experts Group was organised in 1986, and the “joint” referred to its collaboration between ISO and the CCITT, the international telecoms standards body.[2][1] It aimed for one general-purpose standard covering almost every kind of continuous-tone still image, from desktop publishing and colour fax to newspaper wirephotos and medical imaging.[1]
What it was first used for
In June 1987, the committee compared 12 proposed methods in a blind test of picture quality and narrowed them to three. A second, more rigorous test in January 1988 found that the “ADCT” proposal, based on an 8×8 discrete cosine transform, gave the best picture quality.[1] That transform had been described by N. Ahmed, T. Natarajan and K. R. Rao in 1974.[3] From 1988 to 1990, the committee worked through the details needed for real interoperability, and the standard was created in 1992.[1][4]
One of the first uses wasn't for still pictures at all. Wallace noted early industry interest in JPEG as a way to compress video one frame at a time, and expected it to become a de facto standard for that too.[1] The file most people now use came separately. Eric Hamilton created JFIF at C-Cube Microsystems and placed it in the public domain, and its 1992 version “became widely recognized as a de facto standard”.[5]
What happened next
It became the most common format saved by digital cameras.[6] Patent disputes followed, including a claim brought by Forgent Networks in 2002, whose patent the US patent office ruled invalid in 2006.[2] A planned successor, JPEG 2000, arrived in 2000.[6] JFIF itself wasn't formalised until 2011, as ITU-T T.871, and ISO published the same text as ISO/IEC 10918-5 in 2013.[5]
Pros and cons
Pros
- Opens on everything, everywhere, without exception.
- Good for photographs at modest file sizes.
- Fast to encode and decode, with hardware support nearly everywhere.
- Patent-free and simple.
Cons
- Quality falls each time a file is re-saved.
- No transparency and no animation in the standard format.
- Limited to 8 bits per channel in normal use, which can show banding.
- Bad at sharp text and line art, which get fuzzy halos.
Use cases
- Photos for sharing, printing or uploading.
- Email attachments and documents.
- The safe option when you don't know what the other end supports.
Pitfalls
- Editing and re-saving repeatedly wears quality down. Edit from an original, or keep a PNG or TIFF working copy.
- JPEGs can include GPS coordinates. Strip them before sharing.
- Rotation is often stored as a flag, so a photo may look sideways in software that ignores it.
- Screenshots with text look much better as PNG.
Should JPEG be discontinued?
Keep it
Keep it, for sharing. Newer formats can make the same picture much smaller, and on your own website, where you know the browser can show it, that saving is worth taking: use AVIF there. But when you're sending a photo to someone, reach beats size. A JPEG sent today will open in 40 years, on anything, and it's already paid for, with no patents to license and no plugin to install.
When a successor reaches JPEG's level of support, the argument will change. Lossless recompression, as offered by JPEG XL, even makes that transition painless. Until then, JPEG stays the world's common photographic language.
This verdict is FormatSwap's opinion. “Discontinue” means stop creating new files, not stop reading old ones. How we decide.
JPEG files in FormatSwap
Media Converter opens and creates JPEG files.
Related formats
Sources
Numbers in the history above link to these pages. They cover the history section only; the pros, cons and verdict are our own assessment.
- The JPEG Still Picture Compression Standard, Gregory K. Wallace, Communications of the ACM 34(4), 30–44 (1991), revised version, Independent JPEG Group
- JPEG Image Encoding Family, Library of Congress, Sustainability of Digital Formats
- Discrete Cosine Transform, N. Ahmed, T. Natarajan and K. R. Rao, IEEE Transactions on Computers C-23(1), 90–93 (1974), IEEE (DOI record)
- Overview of JPEG 1, JPEG committee
- JFIF, JPEG File Interchange Format, Version 1.02, Library of Congress, Sustainability of Digital Formats
- JPEG, Wikipedia