
Compression is used for images that need to be shortened or squeezed to decrease its volume, length, or dimension. It is often used in the re-encoding of data for things such as text or images.
Lossy compression means that you can lose information in your text or image and lossless compression means that information will never be lost.