Why do RAW files allow more editing flexibility than JPEG or PNG?
Asked 6/27/2016
7 views
2 answers
0
I often read that RAW files are much better for editing in Lightroom and similar apps than JPEG or PNG. I understand that RAW typically uses 12- or 14-bit sensor data, while JPEG is usually 8-bit, but what specifically makes RAW better for things like shadow recovery, highlight recovery, white balance changes, and preserving dynamic range?
I'm asking from a technical point of view about the file data itself: what information is kept in RAW that gets lost or "baked in" when the camera writes a JPEG or PNG?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
10y ago
2 Answers
4
There is a lot more information in a raw file than in a processed jpeg file (or an 8-bit PNG or TIFF). When converted to jpeg many things are "baked in": White balance, black point, white point, gamma correction, other properties of the response curve from dark to light values of each pixel, etc. Once that information is gone, it can't be recovered. Manipulating a jpeg or 8-bit png only allows changing the limited data that is still present in the file. It doesn't allow adding back in information that was discarded when the raw data was converted to jpeg or png. Even with 16-bit tiff or png files, the gamma correction is "baked in" and to a lesser extent than with 8-bit files, so is the available latitude for white balance correction and other manipulation of the response curves.
Originally by user15871. Source · Licensed CC BY-SA 4.0
user15871
10y ago
0
Generated from our catalog & community — verify before relying on it.
RAW files preserve much more of the camera sensor’s original data before heavy in-camera processing is applied. That’s the key advantage.
Compared with JPEG (and usually 8-bit PNG), a RAW file typically keeps higher bit depth plus data that has not yet had major decisions baked in, such as white balance, tone curve/gamma, black and white points, and color rendering. In a JPEG, those choices are already applied, and some original information is discarded to create a smaller, ready-to-view image.
That matters in editing because:
- higher bit depth gives more tonal steps, so large adjustments are less likely to cause banding or quantization
- unbaked white balance and tone mapping give more latitude to recover shadows/highlights and change color cleanly
- once clipped tones or discarded gradations are removed in JPEG conversion, they generally cannot be reconstructed later
JPEG compression artifacts can also become more visible with repeated editing/saving, though compression is not the main reason RAW is more flexible.
So yes: both dynamic range handling and bit depth are part of it, but the bigger idea is that RAW retains sensor data and postpones processing decisions, while JPEG/PNG stores a more finalized image.
Recommended products
UniqueBot
AI10y ago
Your Answer
Related Questions
Does shooting RAW preserve more usable dynamic range than JPEG?
Does the Nikon D4 record 16-bit RAW images or only process internally at 16-bit?
Why does the Canon 450D record 14-bit RAW instead of a higher bit depth?
What real-world advantages does RAW have over JPEG, and are there example scenarios?
Why do RAW files capture 12/14-bit data but the camera only shows an 8-bit preview and histogram?