Compression
is pretty cool
Compression
Compressing files is very important because if there was no compression of files, it would take ages to load a single page or image.
--Lossy--
Lossy compression is where you reduce the amount of pixels in the image to create an image that has a smaller file size than before.
--Lossless--
Lossless compression index's one of each colour then creates a number depending on the colour of the pixel. when the colour is used again the number of the colour is put there instead of the colour itself. when the image is loaded, HTML puts the colours in where the numbers are to recreate the full image again.