1.2.5 Compression Flashcards
Data compression
When we make files smaller while trying to make the compressed file as true to the original as possible
Uses of data compression
-Smaller files take up less space on the device
-Streaming and downloading files from the internet is quicker
-Web pages load more quickly
-Allows you to send emails without being restricted by the size of the attachment
Lossy compression
Permanently removing data from the file- limiting the number of bits it needs and reducing its size
Lossless compression
Making the file smaller by temporarily removing data to store the file then restoring the file to its original state when opened
Lossy compression advantages
-Greatly reduced file size (more files can be stored)
-Take up less bandwidth (can be downloaded and streamed more quickly)
-Commonly used
Lossy compression disadvantages
-Cannot be turned back to the original (data is permanently lost)
-Can’t be used on text or software files (they need to retain all information)
-Worse quality than the original (however mostly unnoticeable)
Lossy compression file examples
-MP3
-AAC
-JPEG
Lossless compression advantages
-Data only temporarily removed (no reduction in quality)
-Can’t be decompressed
-Can be used in text and software files
Decompression
Turning a lossless file back to the original
Lossless compression disadvantages
-Only slight reduction in file size (still take up a lot of space)
Lossless compression file examples
-FLAC
-ZIP
-PNG
What type of file is an MP3
Audio
What type of file is an AAC
Audio
What type of file is a JPEG
Image
What type of file is a FLAC
Audio
What type of file is a ZIP
Files/folders
What type of file is a PNG
Image