5

The CR2 files from my Canon 5D Mk III contain three preview or thumbnail images:

Preview 1: image/jpeg, 160x120 pixels, 17837 bytes
Preview 2: image/tiff, 592x395 pixels, 1403040 bytes
Preview 3: image/jpeg, 5760x3840 pixels, 3166514 bytes

What's the purpose of the TIFF element? It's large in bytes but small in pixels. It's also very low in brightness and contrast. Much lower than the raw data.

https://onedrive.live.com/redir?resid=35EAC6F70642A2B6!1130&authkey=!AGRmbcVca8-HTis&ithint=folder%2cjpg

The tiff file seems very wasteful. The CR2 is 29524589 bytes so the tiff element is almost 5% of the file. It's uncompressed and most of the bits are zero.

I produced the two histograms of the CR2 and the TIFF preview showing how different they look.

RAW

RAW Histogram

TIFF

TIFF Histogram

I have to say I am not convinced by these, I think they are linear rather than logarithmic and only have 256 columns. If anyone can recommend a better command line histogram generator than ImageMagick I would be indebted.

1

According to this document under section 2.6 IFD #2 it's the uncompressed small version of the picture which has no white balance correction applied.

CR2 files are based on the TIFF file format so it would make sense for the uncompressed data to be in the TIFF format.

Its purpose is mostly for displaying the RAW histogram in tools like Digital Photo Professional based on the uncompressed image data.

The TIFF preview also appears to be rendered linearly, with no gamma correction applied, and the white and black points set at the extremes of the sensor's dynamic range.

  • Thanks for the link. Do you have a reference for the use in DPP? The histogram of the TIFF doesn't seem to match the histogram of the raw data. – Neil P Nov 18 '15 at 7:34
  • @NeilP swetake.com/photo/cr2/cr2-5_en.html – jmn Nov 18 '15 at 9:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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