Image compression is a process to reduce irrelevance and redundancy of the image without degrading image quality of the image. It is concerned with minimizing the number of bits required to represent an image.
Image optimization is the process of saving and delivering images in the smallest possible file size without reducing the overall image quality.