Image compression is a process that reduces the file size of an image, meaning it will take up less storage space and load more quickly. By compressing images, you can reduce load time, create a better user experience, and optimize for search engines’ crawlers.
There are two main types, lossy and lossless. Lossless compression preserves the photo quality — when someone opens the image, it will look the same as it did when someone sent that photo via email or put it on their website. Lossy compression actually discards parts of the photo, so the image quality is reduced upon opening the compressed file. However, lossy-compressed photos take up less storage space than lossless ones.