Wednesday 13 October 2010

What is lossy and lossless compression

Lossy compressionLossy compression is the term used for an image file that loses quality every time it save so that the file size can be reduced dramatically.
The colours that are being removed can't be restored because what it is doing is instead of going "yellow, bright yellow, dark yellow, yellow, pink, bright pink" it's going "yellow four pixels along into one pixel then pink two pixels along turned into one pixel" it saves as much dater being stored so it can be sent across the Internet without having to be zipped.

Lossless compression
Lossless compression is where it allows the exact original data to be reconstructed from the compressed data. Lossless compression is used in such formats as ZIP files it is used for data that needs to be identical as the original data, there are formats like PNG or GIF that use only lossless compression while others like TIFF and MNG may be used with either. The lossless files are much larger than lossy due to having all the colours kept not thrown away.

No comments:

Post a Comment