Image compression is a part of the whole image optimization process. In image compression, the image size is reduced making sure that the quality of the image is maintained throughout.