
How JPEG Made Photographs Fit on the Web
JPEG was approved as CCITT T.81 in 1992 and published as ISO/IEC 10918-1 in 1994. Its lossy DCT compression discards detail you barely notice — why it suited photos where the GIF suited flat graphics.
TL;DR: The JPEG standard, written by the Joint Photographic Experts Group, was approved as CCITT Recommendation T.81 in 1992 (the identical ISO/IEC 10918-1 followed in 1994), defining a lossy, DCT-based way to compress continuous-tone photographs so they were small enough to be practical online. The defining move is that JPEG deliberately discards detail the eye barely notices in order to shrink a photograph dramatically — which is exactly why it suited photographs where the palette-limited GIF suited flat graphics. This piece traces the problem it solved, how the trade works in principle, and why the loss at its heart is the feature, not the flaw.
The problem of the heavy photograph
Early web pages could show graphics, but photographs were a different kind of burden. A photograph is a continuous-tone image, full of subtle gradients and thousands of colors blending into one another, and storing all of that faithfully produces a very large file. Over the connections of the early 1990s, a full-quality photograph was simply too heavy to send and receive without a punishing wait.
The formats built for flat graphics did not rescue the photographic case. A palette capped at a few hundred colors renders a logo cleanly but can turn a sunset into visible bands, because there are not enough colors to describe the smooth transitions a photograph depends on. Photographs needed the opposite of what graphics formats offered: not a small fixed palette held exactly, but a way to keep the impression of millions of colors while throwing away the parts no one would miss.
That required a fundamentally different kind of compression, one willing to be imperfect on purpose. The question was not how to store a photograph exactly in less space — that is hard and yields modest savings — but how to store something that looks like the photograph in far less space. Answering that question well is what made photographs practical on the web.
A committee and a standard
The answer came from a standards body rather than a single company, which matters for how universally it spread. The Joint Photographic Experts Group was formed to define a common method for compressing photographic images, and the group gave its name to the result. The JPEG standard was approved as CCITT Recommendation T.81 in September 1992, and the identical text was published as ISO/IEC 10918-1 in 1994. Because it was an open, agreed specification rather than one vendor's proprietary format, any implementer could build software that read and wrote it.
That neutrality arguably helped JPEG become ubiquitous. A format controlled by one firm can be steered, licensed, or abandoned by that firm; a committee standard that many implementers adopt can settle into the background as simply how a thing is done. Cameras, browsers, image editors, and operating systems could all support the same format, and photographs written on one system displayed on another. The standard did flag patents that may be required for its processes that use arithmetic coding and for hierarchical coding with a lossless final frame, and each listed holder had filed a statement of willingness to license them on reasonable and non-discriminatory terms; for its other processes, including the Huffman-coded DCT ones, no required patents had been identified at the time of publication.
It is worth being precise about what JPEG is and is not. It is a method for compressing continuous-tone still images, defined by a published standard. It is not a photograph format in the sense of owning the whole experience of a picture on a device; it is the compression at the core, wrapped in file containers that carry it. The clarity of the standard plausibly helped it become the default without anyone deciding it should be.
The lossy trade at the core
The heart of JPEG is a technique built on the discrete cosine transform, usually shortened to DCT. Rather than record each pixel's exact value, the method breaks the image into small blocks and describes each block in terms of how its brightness and color vary across it, from broad, smooth changes down to fine, rapid detail. It then stores each of those components with no greater precision than the desired image quality requires, discarding information that is not visually significant; because a typical block concentrates most of its signal in the broad, smooth components, much of the fine information can be dropped.
This is what makes JPEG's DCT-based processes lossy: the decoded image is not identical to the original, and in general it cannot be. (The standard also defines a separate lossless process, which it notes is significantly less effective than the DCT-based processes for distortions near and above the threshold of visibility.) Detail has been thrown away, permanently, in exchange for a much smaller file. The trade is tunable — compress lightly and the loss is nearly invisible while the savings are large; compress hard and the file shrinks further but visible compression artifacts start to show. Either way, the loss is not a defect to be apologized for. It is the entire strategy, and it is why a photograph that would have been impractically large becomes something a page can load.
The elegance of the approach is that it targets the loss where it will be least noticed. By spending its precision where it is visually significant and economizing where it is not, JPEG produces images that look right at a fraction of the honest size. It is compression designed around the limits of perception rather than the limits of storage.
Why JPEG suited photos and GIF suited graphics
It is tempting to line up image formats as competitors, better and worse versions of one thing, but JPEG and the palette-limited graphics format that preceded it were built for different jobs. A flat graphic — a logo, an icon, line art with large areas of solid color and hard edges — has little fine gradient to lose and everything to gain from staying crisp, so lossless, palette-based compression fits it well. Push that same graphic through JPEG and, unless the quality setting is very high, the hard edges tend to pick up faint smudges, the artifacts of a method that assumed smooth photographic variation.
Run the comparison the other way and the mismatch is just as clear. Save a photograph in a format capped at a few hundred colors and its gradients can collapse into visible bands or dithering noise, because a single palette holds only a few hundred of the many subtle tones a photograph contains. JPEG, by contrast, keeps the impression of all those tones while quietly discarding the detail underneath, which is precisely what a photograph can spare and a logo cannot.
So the honest framing is not that one format won. It is that photographs and flat graphics are different problems, and the two dominant early formats each solved one of them. Choosing the wrong tool degrades either the file or the image: a photograph forced into a graphics format can look banded, and a graphic forced into JPEG can look smudged. The formats coexisted because the web needed both.
The successors that followed
JPEG became the default photographic format of the web and has stayed remarkably durable, but it was never the last word. Later formats set out to compress photographs better still, keeping the same basic bargain — discard what the eye barely notices — while aiming to extract more savings or fewer artifacts from it.
The timeline below marks the format's arc without pretending the successors have retired it.
| Period | Milestone | What it was |
|---|---|---|
| 1986 | JPEG committee formed | The Joint Photographic Experts Group convened to define a common photo compression method |
| 1992 | JPEG standard approved (CCITT T.81) | A standard for continuous-tone images with lossy, DCT-based processes and a separate lossless process, open to all implementers |
| By the late 1990s | Web photo default | JPEG became the ubiquitous format for photographs on the web |
| 2000s onward | JPEG 2000, WebP, AVIF | Successor formats aimed to refine the same trade with better efficiency and quality |
What the table shows is continuity, not replacement. The successors were designed to do the job better, yet the original standard remains everywhere, because universal support and decades of accumulated files are their own kind of advantage. Newer formats are gaining ground, but JPEG's ubiquity has made it stubbornly hard to dislodge.
The lasting point is that JPEG solved photographs on the web by refusing to be faithful. It won by discarding detail on purpose, spending its precision where detail is visually significant and economizing where it is not, and that willingness to be imperfect is exactly what made the honest, unwieldy photograph into something the web could carry.