selective-php / image-type

Image type (format) detection for PHP
MIT License
7 stars 4 forks source link

Detect CR2 RAW images #13

Closed odan closed 5 years ago

odan commented 5 years ago

CR2 is an older RAW (TIFF based) image format.

Specification

Identifiaction

It's a TIFF header

II or MM + 0x002a + 0x0000 0010 + "CR" or 0x4352