There are two main types of image compression: lossless compression and lossy compression. Lossless compression reduces the file size without losing any data, while lossy compression removes some data from the file, resulting in a smaller file size but some loss of quality.