Image-ExifTool - Loose magic bytes when writing a CR2 file

Posted on Thu Oct 27 00:52:01 2005 by tschnebeck
Loose magic bytes when writing a CR2 file
Hi,

Canon RAW file format CR2 is TIFF compatible but uses some extra bytes so that you can differ TIFF and CR2 by MIME magic:
Both start with 'II\x2a\x00' on address 0x0 but CR2 contains also 'CR\0x02' at file address 0x8.
When I use ExifTool for writing a new CR2 meta tag header this 'CR\0x02' get lost and I can not differ these filetypes by MIME magic any longer. Can this be corrected, please?

Bye

Thorsten
Direct Responses: 1239 | Write a response