Difference between Lossy Compression and Lossless Compression



Data Compression refers to a technique where a large file to reduced to smaller sized file and can be decompressed again to the large file. Lossy compression restores the large file to its original form with loss of some data which can be considered as not-noticable while lossless compression restores the large file to its original form without any loss of data.

Following are some of the important differences between Lossy Compression and Lossless Compression.

Sr. No.KeyLossy CompressionLossless Compression
1Data EliminationLossy compression eliminates those bytes which are considered as not-noticable.Lossless compression keeps even those bytes which are not-noticable.
2RestorationAfter lossy compression, a file cannot be restored to its original form.After lossless compression, a file can be restored to its original form.
3QualityLossy compression leads to compromise with quality.No quality degradation happens in lossless compression.
4SizeLossy compression reduces the size of file to large extent.Lossless compression reduces the size but less as compared to lossy compression.
5Algorithm usedTransform coding, Discrete Cosine Transform, Discrete Wavelet transform, fractal compression etc.Run length encoding, Lempel-Ziv-Welch, Huffman Coding, Arithmetic encoding etc.
6UsesLossy compression is used to compress audio, video and images.Lossless compression is used to compress text, images and sound.
7CapacityLossy compression technique has high data holding capacity.Lossless compression has low data holding capacity as compared to lossy compression.
raja
Published on 06-Jan-2020 11:14:27
Advertisements