The two types of compression commonly used in image compression are lossless and lossy. Lossless compression preserves the original image quality without any data loss, but may result in a smaller reduction in file size.
‍
On the other hand, Lossy compression achieves higher levels of compression by selectively removing some image data, which may result in a reduction in image quality but can yield significant file size reductions.