How do Lightroom and Photoshop determine white balance temperature from a Canon RAW file?
Asked 4/28/2011
3 views
2 answers
0
I shot a RAW (.CR2) file on a Canon 450D. In Lightroom and Photoshop CS5 it shows White Balance as "As Shot" and a Temperature value of 4900K. But when I view the file's EXIF data in IrfanView, I don't see any color temperature field.
How do Lightroom and Photoshop get that temperature value from a RAW file? Is the information stored somewhere in the CR2 metadata that some EXIF viewers may not display, or is the software calculating it from the raw sensor data and white balance coefficients?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
15y ago
2 Answers
16
It is in the EXIF data, but the info is under Canon tag. For any EXIF-related tasks, I wholeheartedly recommend ExifTool by Phil Harvey.
Here's an example of a real file (which coincidentally was shot with Canon 450D)
$ exiftool -canon:"WB_RGGB*" -canon:"*temp*" MG_5366.CR2 WB RGGB Levels As Shot : 2270 1024 1024 1520 WB RGGB Levels Auto : 2270 1024 1024 1520 WB RGGB Levels Measured : 2267 1023 1024 1518 WB RGGB Levels Daylight : 2245 1024 1024 1425 WB RGGB Levels Shade : 2595 1024 1024 1197 WB RGGB Levels Cloudy : 2422 1024 1024 1299 WB RGGB Levels Tungsten : 1660 1075 1075 2222 WB RGGB Levels Fluorescent : 1960 1024 1024 1945 WB RGGB Levels Kelvin : 2245 1024 1024 1425 WB RGGB Levels Flash : 2485 1024 1024 1273 Camera Temperature : 18 C Color Temperature : 5200 Color Temp As Shot : 4955 Color Temp Auto : 4955 Color Temp Measured : 4955 Color Temp Daylight : 5200 Color Temp Shade : 7000 Color Temp Cloudy : 6000 Color Temp Tungsten : 3200 Color Temp Fluorescent : 3776 Color Temp Kelvin : 5189 Color Temp Flash : 6310
NB: Windows users: double-check that you use double-quotes, not single quotes.
EDIT: The Color Temp infos are "nice to know" data, but they do not hold any other value than informational. The °Kelvins are probably based on camera's WB calculations and post-processing software most likely uses the WB RGGB Levels data.
I tested this by changing the Color Temp As Shot value from 5200 ⇒ 7000 and opened the file in Photoshop (Adobe Camera Raw). Nothing did change.
Then I changed the WB RGGB Levels As Shot value of a copy of the original file from 2270 1024 1024 1520 ⇒ 1000 1000 1000 1000 and the image changed to this:

I did not change the Color Temp As Shot value, but Adobe Camera Raw shows the temperature as 2150 (tint -144)
Summa summarum: Adobe Camera Raw calculates the "Color Temperature" from the EXIF-data, from WB_RGGBLevels* tag, under the Canon group (under the Maker Notes group).
Originally by user1913. Source · Licensed CC BY-SA 4.0
user1913
15y ago
0
Generated from our catalog & community — verify before relying on it.
Lightroom/Photoshop can read white-balance metadata stored in the RAW file, and some of it may be in maker-specific Canon tags that basic EXIF viewers don’t show. So yes: IrfanView may simply be missing Canon-specific fields.
On Canon RAW files, the camera often stores white-balance multipliers such as RGGB levels for “As Shot,” Auto, Daylight, Tungsten, etc. Adobe can use those values to reproduce the camera’s as-shot white balance.
The displayed Kelvin number is not necessarily a literal EXIF field written as “4900K.” More commonly, software derives an approximate color temperature from the stored white-balance coefficients (and camera profile), then presents that as a user-friendly Temperature value.
So the answer is: it’s usually both metadata and calculation. The RAW contains white-balance information, often in Canon maker notes, and Adobe converts that into the Temperature/Tint controls you see.
If you want to inspect those hidden fields, use ExifTool, which can read Canon maker-note tags such as WB RGGB Levels and related white-balance data.
Recommended products
UniqueBot
AI15y ago
Your Answer
Related Questions
How can I read the as-shot white balance/color temperature from a Nikon NEF RAW file?
Why doesn’t Canon custom white balance carry over to Lightroom or Camera Raw?
Why doesn't Nikon D810 manual white balance match Lightroom's "As Shot" value?
Why does Photoshop remove some EXIF fields when saving a JPEG?
Can Lightroom or Photoshop provide the color correction matrix used for RAW conversion?