Log in Sign up
Back to Discover
💻

JPEG

technology Maturity 7-9

This is how pictures work on computers.

Lichtenstein img processing test.png
Lichtenstein img processing test.png
It makes files small. This helps us share photos fast. It is used every day. Do you like looking at photos?

32 words

Computers use a special way to save photos.

Lossless-circle.png
Lossless-circle.png
This method is called JPEG. It makes image files much smaller. This helps us share pictures online.
Lossy-circle.jpg
Lossy-circle.jpg
It can lose some small details. This happens so the file stays tiny. You can choose how much detail to keep. Some files look very clear. Other files might look a bit fuzzy.
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
Billions of these pictures are made every day. It is a very popular way to see photos.

88 words

Computers use a special way to save digital photos.

Lossless-circle.png
Lossless-circle.png
This method is called JPEG. It stands for Joint Photographic Experts Group. This was the name of the team that made it. They released the JPEG standard in 1992.

JPEG uses a way called lossy compression. This means it makes files much smaller by leaving some data out.

Lossy-circle.jpg
Lossy-circle.jpg
You can choose how much to shrink a file. If you shrink it a lot, the file is tiny. But the picture might look a bit fuzzy.
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
If you keep more data, the image looks better.

This works using a math tool called the discrete cosine transform. We call this the DCT for short.

Dctjpeg.png
Dctjpeg.png
The DCT helps turn parts of an image into a new form. This makes it easier to save space. JPEG is very popular. It helps us share photos on the web and social media. Billions of JPEG images are made every day. It is the most used format for digital photos in the world.

179 words

Have you ever wondered how your phone saves so many photos?

Lossless-circle.png
Lossless-circle.png
Computers use a special method called JPEG to store digital images. JPEG stands for Joint Photographic Experts Group. This was the name of the group that created the standard. It is a type of lossy compression. This means the computer makes files smaller by leaving some data out.
Lossy-circle.jpg
Lossy-circle.jpg
You can choose how much to shrink a file. A smaller file takes up less storage space. However, shrinking it too much can make the picture look fuzzy.
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg

How does this shrinking work?

JPEG process.svg
JPEG process.svg
The process uses a math tool called the discrete cosine transform, or DCT. The DCT turns parts of an image into a different form. This makes it easier to save space. The computer looks at small 8x8 blocks of pixels.
JPEG example subimage.svg
JPEG example subimage.svg
It uses the DCT to change these blocks into a stream of bytes. This allows the computer to pack the information tightly. When you want to see the picture, the computer decompresses it back into an image. This way, you can view your photos easily.

Scientists worked on these ideas long before JPEG was released. Nasir Ahmed first proposed the DCT as a way to compress images in 1972. He published this work with T. Natarajan and K. R. Rao in 1974. The Joint Photographic Experts Group was organized in 1986. They worked on the standard during the late 1980s. They finally published the JPEG standard in 1992.

Dctjpeg.png
Dctjpeg.png
This standard helped digital photos spread across the Internet. It even helped the rise of social media.

JPEG is a very important tool in our digital world. As of 2015, several billion JPEG images were produced every single day. It is the most widely used digital image format on Earth. Many different file formats use JPEG compression. One common version is JPEG/Exif, which digital cameras often use. Another version is JPEG/JFIF, which is common on the World Wide Web.

JPEG ZigZag.svg
JPEG ZigZag.svg
These files usually end with the extension .jpg or .jpeg. Some formats can even hold huge images up to 4 gigapixels.

Think about how you send a message to a friend.

idct-animation.gif
idct-animation.gif
If the message were too long, it might take a long time to send. JPEG acts like a way to summarize that message. It keeps the most important parts so your friend understands it. But it leaves out the tiny details that don't matter much. This makes the "message" much faster to travel. Because of this, we can share beautiful photos instantly with people all over the world.

440 words

JPEG is a widely used method for lossy compression of digital images. The name stands for the Joint Photographic Experts Group, which was the committee that created the standard. Compression is a way to make digital files smaller so they take up less storage space. JPEG uses lossy compression, which means it reduces file size by permanently removing some data. This creates a trade-off between the size of the file and the quality of the image.

Lossy-circle.jpg
Lossy-circle.jpg
Usually, JPEG achieves a 10:1 compression ratio. This means the file becomes ten times smaller while remaining acceptable to most people.

To understand how JPEG works, we must look at its mathematical engine. The core of the process is the discrete cosine transform, or DCT. The DCT is an algorithm that changes how image data is represented.

JPEG process.svg
JPEG process.svg
During encoding, the computer divides the image into small 8x8 blocks of pixels.
JPEG example subimage.svg
JPEG example subimage.svg
The DCT then transforms these blocks into a stream of bytes. This transformation makes it easier to identify which parts of the image are most important. The computer can then pack this information much more tightly than raw pixels. When you want to view the image, the computer performs decompression to turn those bytes back into a visible picture.
Dctjpeg.png
Dctjpeg.png

There are different ways these compressed images are stored and used. One common version is JPEG/Exif, which is used by digital cameras and other photographic devices. Another version is JPEG/JFIF, which is the most common format for storing and sending images on the World Wide Web.

JPEG ZigZag.svg
JPEG ZigZag.svg
While people often use the word "JPEG" for everything, these are actually different format variations. Files usually use the extension .jpg or .jpeg. The JFIF format is quite powerful and can support a maximum image size of 65,535 by 65,535 pixels. This allows for images as large as 4 gigapixels at a 1:1 aspect ratio.

The history of JPEG is built upon decades of mathematical research. The DCT algorithm was first proposed by Nasir Ahmed in 1972. Ahmed published this technique in a 1974 paper alongside T. Natarajan and K. R. Rao. The Joint Photographic Experts Group was organized in 1986 to turn these ideas into a global standard. They worked on the standard throughout the late 1980s and finally published it in 1992.

idct-animation.gif
idct-animation.gif
The specification also relied on several patents for its arithmetic coding algorithm. These included work from IBM, Mitsubishi Electric, and researchers like Jorma J. Rissanen.

Since its release, JPEG has become the most dominant image standard in the world. It was a major reason why digital photos and images spread so quickly across the Internet and social media. The impact is massive; as of 2015, several billion JPEG images were produced every single day. Even though a successor called JPEG 2000 was introduced in 2000, it could not replace the original. The original standard remains the most widely used digital image format on Earth.

Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg

However, the history of the format has not been without legal challenges. In 2002, a company called Forgent Networks claimed they owned rights to the technology through a patent from 1986. This caused a great deal of worry in the tech community. The JPEG committee investigated and believed the patent was invalid due to "prior art," which is existing evidence that an idea was already known. After several years of lawsuits involving many large companies, the U.S. Patent and Trademark Office found the patent invalid in 2006. Other companies, such as Global Patent Holdings and Princeton Digital Image Corporation, also brought legal claims regarding different patents.

Despite these legal battles, JPEG remains a fundamental part of our digital lives. It connects the science of mathematics to the way we share our daily lives online. By using the DCT to simplify complex visual data, JPEG allows us to transmit beautiful images instantly. It bridges the gap between high-quality photography and the limited storage of our devices. Without this technology, the massive amount of visual information on the modern web would be much harder to manage.

684 words
🖼️ Images & Media (21)
File:Felis silvestris silvestris small gradual decrease of quality - JPEG compression.jpg
Felis silvestris silvestris small gradual...
Continuously varied JPEG compression for...
File:JPEG example subimage.svg
JPEG example subimage.svg
File:Dctjpeg.png
Dctjpeg.png
File:idct-animation.gif
idct-animation.gif
File:JPEG ZigZag.svg
JPEG ZigZag.svg
File:JPEG process.svg
JPEG process.svg
File:Lichtenstein jpeg difference.png
Lichtenstein jpeg difference.png
File:Lichtenstein img processing test.png
Lichtenstein img processing test.png
File:Jpegvergroessert.jpg
Jpegvergroessert.jpg
File:Lossless-circle.png
Lossless-circle.png
File:Lossy-circle.jpg
Lossy-circle.jpg

+ 9 more

Up Next
💻
PNG
Technology
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.