File compression is the method of decreasing the dimensions of a file with out shedding any of its data. This may be finished utilizing a wide range of strategies, together with lossless compression, which preserves the entire unique information, and lossy compression, which removes a few of the information to be able to obtain a smaller file dimension.
There are a lot of the explanation why you would possibly wish to compress a file. For instance, you would possibly wish to save area in your laborious drive, make it simpler to ship a file through e-mail, or scale back the period of time it takes to obtain a file.