Compression Flashcards
Data Compression
When we make files smaller whilst tying to make compressed file as true to original as possible
Uses of compressing data
Smaller files take up less storage space
Streaming & Downloading files from internet quicker as take up less bandwidth
Allow web pages to load more quickly in browsers
Allows you to send the same content with a smaller file size through Email Services allowing you to evade size of attachment restrictions
Two Types of Compression
Lossy
Lossless
Lossy
permanently removing data from file- limits number of bits the file needs and reduces its size
Lossless
makes file smaller temporarily removing data to store file and the restores it to its original state when opened
Pros of Lossy
Greatly reduced file size meaning more files can be stored
Lossy Files take up less bandwidth so can be downloaded & streamed more quickly
Commonly used- lots of software can read Lossy files
Cons of Lossy
Loses data- File cant be turned back to original
Cant be used on text or software files, these files need to retain all information of original
Lossy files worse quality than original but loss in quality is normally unnoticeable
Pros of Lossless
Data removed temporarily so there is no reduction in quality- compressed file should look/sound like original
Lossless files can be decompressed- turned back to the original
Lossless compression can be used on text and software files
Cons of Lossless
Only a slight reduction in file size, so lossless file still take up quite a bit of space on your device
ex) A lossless song may have a file size of around 30MB, while the same song with lossy compression maybe 5MB