From EduTechWiki - Reading time: 2 min
Compression is used by most multimedia formats like video streaming, digital images (e.g. JPEG and PNG) and music (e.g. MP3). It is also popular for software distribution and archiving, e.g. zip/jar archive files contain compressed files. Gzip or bzip2 is used to compress (uncompressed) *.tar archives.
Usually there is a choice of two kinds of features
Here is an example. The number 8.9996666 could be compressed as
8.9[3]6[4] -or- 8.9
The second alternative is lossy, but may be good enough for your needs ...
This inventory is absolutely not complete, see the Wikipedia article on data compression. There are dozens of popular codecs, in particular for video and audio.
Compressed multimedia contents are often embedded in a multimedia container format, i.e. a file format that can contain various types of data ...
(usually for data including vector graphics and software)
(usually for non-vectorial multimedia)