Nepedia
Back to Discover
Fluent Reader
💻

Data compression

technology Maturity 9-11 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Data compression is the way we make digital files smaller. This is very important for saving space on devices. It also helps us send information across the internet much faster.

Comparison of JPEG and PNG
Comparison of JPEG and PNG

There are two main ways this happens. One way is called lossless compression. This method keeps every single piece of original information. The other way is called lossy compression. This method makes files even smaller by removing bits of data that are not essential.

Hybrid video encoder processing stages
Hybrid video encoder processing stages

Lossless compression works by finding patterns in the data. This is often called statistical redundancy. For example, an image might have a long row of the same color. Instead of listing every single pixel, the computer can just say "279 red pixels." This specific way is called run-length encoding. Other methods, like Lempel-Ziv (LZ) algorithms, use a table to swap repeated parts of data. This allows the computer to rebuild the exact original file later.

Nubio Diff Screenshot3
Nubio Diff Screenshot3

This process is reversible, so nothing is ever lost.

Lossy compression works differently by making choices about what to keep. It is designed based on how humans see and hear. For instance, our eyes are very sensitive to brightness. However, we are not as good at seeing small changes in color. Lossy methods can remove those less important color details to save space. This is how JPEG images work. In music, methods called psychoacoustics remove sounds that people cannot easily hear. This allows for smaller files like MP3s.

AudiodatenkompressionManowarThePowerOfThySword
AudiodatenkompressionManowarThePowerOfThySword

Many important scientists helped develop these ideas. Claude Shannon wrote fundamental papers on this topic in the late 1940s and early 1950s. He created the field of information theory. In 1972, Nasir Ahmed proposed a method called the discrete cosine transform (DCT). He later worked with T. Natarajan and K. R. Rao to create a working version in 1973. This DCT method is now used for many things. It is found in JPEG images, MPEG videos, and MP3 audio files.

Placa-audioPC-925
Placa-audioPC-925

Today, we see compression in almost everything we do online. When you stream a video, you are using lossy video coding. When you save a photo on a digital camera, compression helps you fit more pictures. Even modern machine learning is connected to this. For example, a model called Chinchilla 70B from DeepMind showed it could compress data very well. It compressed images to 43.4% of their original size. This shows how much technology continues to improve at handling our digital world.

402 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (5)
File:Comparison of JPEG and PNG.png
Comparison of JPEG and PNG.png
File:Nubio Diff Screenshot3.png
Nubio Diff Screenshot3.png
File:AudiodatenkompressionManowarThePowerOfThySword.jpg
AudiodatenkompressionManowarThePowerOfThySword.jpg
File:Placa-audioPC-925.jpg
Placa-audioPC-925.jpg
File:Hybrid video encoder processing stages.svg
Hybrid video encoder processing stages.svg
More to explore

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.