RAW and JPG explained
A camera RAW file is the sensor's unprocessed readout, plus the camera's settings as metadata. It is not really an image yet: it has to be developed, which is why the same RAW can produce very different-looking photos.
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.
- Where RAW files come from
- Interchangeable-lens cameras and phones shooting in professional mode.
- Where JPG is used
- Digital cameras, phone screenshots on Android, and essentially every photo on the pre-2015 web.