lossless compression
- nothing is lost
lossy compression
- original can never be reconstructed, it has been irreversibly changed
how lossless compression works
looks for redundancy where the same data is stored many times and groups this data into one reference
how lossy compression work
alogrithms analyse the image and find areas with only slight differences
these are given the same value, which takes fewer bits
in sound recordings very small variations in frequency, tone and volume are removed to reduce the file size as the human ear cannot detect the small differences
uses of lossless
- graphics files with a low colour depth
use of lossy
- digital sound recordings
less successful use for lossless
- 24 bit colour files
less successful use for lossy
- executable files
examples of lossless
examples of lossy
- JPG image files
need for compression
Describe the difference between lossy and lossless compression and give an example where each would be used [4]
when data is uncompressed again in lossy compression, it is not exactly the same as the original but the difference is so small it cannot normally be noticed (e.g. MP3 audio and JPG image files)
when data is uncompressed in lossless compression, it is restored completely to the original file (e.g. compressed text files)
compression
reduces the file size so more data can be stored
Explain the important of compressing files when they are transported over the internet [2]
reduces the size of the file that needs to be transmitted
shortens download time
reduces internet traffic
allows multimedia files to be streamed