JPEG uses pixels to compress photos and complex images, potentially losing some visible quality. GIF compresses simple graphics like drawings without quality loss, but only allows 256 colors and can create basic animations. PNG provides a smaller file size than GIF for simple graphics without loss of quality or animation capabilities.