Alley in Pisa, Italy

by Lars Kotthoff

submit your photo

Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I captured a Raw image using my Canon 450D. When imported this RAW(CR2) file into Lightroom and Photoshop CS5, it showed the Temperature as 4900 and White Balance setting - "As shot". When I checked the EXIF data associated to this raw CR2 file, there is no mention of the colour temperature setting in it.

I used Irfanview to see this EXIF data. Irfanview + Canon raw plugin can open this Canon raw CR2 file.**

  1. So how does Photoshop/Lightroom compute the colour temperature from the Raw image data?

  2. Would be interested in knowing What kind of algorithm/mathematical computation it does to get this temeprature number?

  3. Could it be possible that the CR2 raw file has this Colour temperature information embedded into it, but Irfanview Exif information display somehow missed it/messed it?

Any pointers would be useful.

share|improve this question

1 Answer 1

up vote 13 down vote accepted

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 52007000 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 15201000 1000 1000 1000 and the image changed to this:

wb rggb change

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).

share|improve this answer
@Koiyu: Thanks. I donwloaded the exiftool and checked the CR2 file I have, and it showed no information related to temperatur/WB in it. Is it possible for you to check my RAW CR2 file from:… and let know the outcome of exiftool for colour temperature related data in it. Or else something is amiss with the Raw mode setting which I did while I captured this file. –  goldenmean Apr 28 '11 at 17:04
@goldenmean sadly, the "download original" option under "File" is grayed out. Is there any other way for you to share the file? (or am I doing something wrong) –  koiyu Apr 28 '11 at 17:08
@Sorry my error. Pls check the link in my comment above now. Its a zip file having the CR2 inside it. –  goldenmean Apr 28 '11 at 17:09
@Koiyu: When I run exiftool on my CR2 image which I shared with you, this is the result:-… –  goldenmean Apr 28 '11 at 17:19
@goldenmean, I updated koiyu's correct answer with the dump from your file. BTW, in my experience IrfanView only shows a dumbed down subset of exif, it shouldn't be trusted for much beyond the basics. ExifTool FTW. –  cabbey Apr 28 '11 at 17:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.