2.6 Compression Flashcards
lossless compression
- reduces file size without deleting any data
- nothing is lost
lossy compression
- reduces file size by deletin some data
- 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
- text files
- graphics files with a low colour depth
use of lossy
- image files
- digital sound recordings
less successful use for lossless
- audio files
- 24 bit colour files
less successful use for lossy
- text files
- executable files
examples of lossless
- compressed text files
- GIF and PNG image files
- free lossless audio (FLAC) and Apple lossless (ALAC) files
examples of lossy
- MP3 audio files
- JPG image files
need for compression
- less internet bandwidth is used when files are up or downloaded
- transfer speed is quicker
- less storage space is needed
- smaller files reduce congestion on the internet
- audio and video files can be streamed
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