Guide

White balance: The difference between RAW and JPEG

David Lee
18.1.2019
Translation: machine translated

In one and the same RAW converter, the colour temperature is not always specified in the same way. Sometimes you see 5400 Kelvin, but sometimes +2. This is not a stupid coincidence, but an indication of what the software is actually doing.

In a RAW converter (Lightroom, Capture One, Photoshop Camera Raw, etc.) you can correct the white balance - regardless of whether it is a RAW photo or a JPEG. This correction works in a fundamentally different way with JPEG than with RAW. I have already mentioned this briefly in my white balance article.

  • Guide

    White balance: the thermometer for your photos

    by David Lee

But I want to go into more detail about this now, because:

  • we are among nerds here who also like to pick apart trivialities.
  • it gives you a good feeling when you know exactly what the controller you're tweaking is doing.

First and foremost, we're talking about the colour temperature control, which is somewhere between cold (blue) and warm (yellow). Secondly, the slider that balances the colour between green and magenta. This setting is called toning or tint.

The sliders in a RAW file
The sliders in a RAW file

In RAW format, the colour temperature is specified in Kelvin, abbreviated with a capital "K". The values range between 2500 K and 10000 K. In JPEG, on the other hand, there is no Kelvin value, but a plus-minus scale. The second slider, the green-magenta scale, is a plus-minus scale in both cases.

The sliders in a JPEG
The sliders in a JPEG

To understand why this is the case, you need to understand what happens when you shoot a RAW or a JPEG.

What happens during shooting

When shooting in RAW format, what the camera sensor has captured is saved unchanged in the image file. The colour temperature determined by the camera's automatic system is only saved in the metadata, not in the image itself. The information about which pixel has which colour and brightness always remains the same in the RAW file, regardless of how you set the white balance. What is in the metadata is more or less a recommendation from the camera. You can use it as a starting point for fine adjustments or ignore it completely.

In JPEG, the colour of the individual pixels has a direct effect on the measured colour temperature. The colouring is therefore already "hardcoded" during the saving process. Corrections are only possible in relation to this fixation. This is why you have a plus/minus scale on the slider for JPEG and no Kelvin value.

If the JPEG slider is at zero in the centre, this means that the white balance is the same as when the picture was taken. It does not mean that the image has a medium colour temperature. For example, if I take a photo with the extreme value of 10,000 K, then the slider at zero corresponds to 10,000 K. If I move the slider down, the picture looks different than if I had taken it at a low Kelvin value. Kelvin specifications for a JPEG would therefore be dubious.

This image was taken with a Kelvin value that was too low (3500 K).
This image was taken with a Kelvin value that was too low (3500 K).
This is what it looks like when I increase to 7500 K in RAW format. This is over-corrected, but makes the difference clearer.
This is what it looks like when I increase to 7500 K in RAW format. This is over-corrected, but makes the difference clearer.
In JPEG I can't get the correction to make the colours nearly as strong.
In JPEG I can't get the correction to make the colours nearly as strong.

RAW vs. JPEG for colour toning

The second slider, which is responsible for the green-magenta range, also works differently for RAW and JPEG. There is a plus-minus value here in both cases. However, for JPEGs, this value is always set to zero if you have activated the "As shot" setting. This is not the case with RAW: the camera also specifies a recommendation in the metadata. If the metadata contains +10, for example, this value is displayed from the start.

How and where are your changes saved

If you tweak the white balance, the RAW converter does not save this information in the image file itself. Photoshop creates a separate accompanying file with the extension .xmp. This is only a few kilobytes in size, as it does not contain any image information. It only saves the settings of the various sliders.

Lightroom can read and write these xmp files. Lightroom also saves the settings in an internal database, the catalogue. Capture One Pro works in principle in the same way, but is not compatible.

As long as you do not export the image, i.e. physically create a new image file, all settings are reversible without loss - even with JPEGs.

However, when you have finished editing a RAW image and come to the conclusion that you have created something useful, you export the image as a new file. Usually as a JPEG. When exporting, the setting values are saved in the file itself. In the case of RAW, again only in the metadata, so that lossless changes are possible at any time. In the case of JPEG, the pixels are recoloured.

So. I hope you now understand your RAW converter a little bit better.

34 people like this article


These articles might also interest you

  • Guide

    Photo editing: equalising differences in brightness

    by David Lee

  • Guide

    How to open RAW files in brand new cameras

    by David Lee

  • Guide

    When you need to sharpen a photo and how to do it

    by David Lee

Comments

Avatar