image compression is a process of representing an image file or datastream using fewer bytes. compression can be "lossless", in which the original data can be recovered exactly, or it can be "lossy", in which some detail is lost for the sake of better compression.

image compression is a process of representing an image file or datastream using fewer bytes. compression can be "lossless", in which the original data can be recovered exactly, or it can be "lossy", in which some detail is lost for the sake of better compression.

Examples of "lossy" compression are JPEG, which attempts to quantize the data in a manner that preserves image appearance and GIF, in which the number of colors is reduced to 256 or fewer. PNG is an example of lossless image compression, at least to the extent that up to 16 bits of data per color sample are preserved.

history | excerpt history