WebP uses both lossy and lossless compression techniques to reduce image file sizes without significant loss of quality.