JPG and PNG explained
JPEG is a lossy image format designed for photographs. It works by discarding detail the human eye is least likely to notice, particularly in colour and in smooth gradients, which is why it compresses photos far better than it compresses text or line art.
PNG is a lossless raster format built to replace GIF. It stores every pixel exactly as given and supports a full 8-bit alpha channel, which means genuine partial transparency rather than the single transparent colour GIF offers.
- Where JPG files come from
- Digital cameras, phone screenshots on Android, and essentially every photo on the pre-2015 web.
- Where PNG is used
- Screenshots, exported logos and UI assets, and anything designed rather than photographed.