Joke Collection Website - Talk about mood - Advantages and disadvantages of compressed files

Advantages and disadvantages of compressed files

Let's talk about the principle of compression: the information processed by the computer is marked in the form of binary numbers (0 and 1), and the compression software marks the same character string in the binary information for compression, thus reducing the file size.

Advantages: the file size can be reduced; The compression ratio is different according to different files. For example, the compression ratio of text files is large (a word or a word will appear repeatedly in the same file), while the compression ratio of graphic images is relatively small (it is common that each pixel has different pigments, and the binary codes corresponding to different colors and tones, different contrast and different brightness are different).

Disadvantages of compressed files: 1, which requires decompression tools to open files; 2. If the compressed file is damaged, the whole file may be affected.