Topics / Data Storage / Data Compression

Data Compression

Compression is used to reduce file sizes – something which is essential in an era of online video streaming and media sharing.

Without compression, we would:

  • Fit less music, videos or photos onto your smart phone or computer
  • Struggle to stream or download videos from the internet
  • Struggle to upload media to the internet
  • Find browsing websites a slower experience

Compression can be categorised as either lossy or lossless.

Lossless compression

Lossless compression reduces the size of a file without any damage to the file or reduction in quality.

The file can be decompressed to its original state, with all the data bits reconstructed.

Lossless compression is ideal for compressing text or numeric files where a loss of data is unacceptable.  It is also used in PNG, GIF and ZIP files.

Lossy compression

To get low file sizes, lossy compression permanently removes data from the file that the computer believes you can do without (redundant data).

Often we can hardly notice the difference, but if you get too greedy (aggressive) with lossy compression you will notice the file quality deteriorates significantly.

It is impossible to get the file back to its original state and quality. Lossy compression is best at creating really small file sizes – ideal for downloads or streaming.

File formats that use lossy compression include MP3, MP4 and JPG.

Topics / Data Storage / Data Compression