neilharvey / FileSignatures

A small library for detecting the type of a file based on header signature (also known as magic number).
MIT License
259 stars 42 forks source link

TIFF signature is incorrect #29

Closed neilharvey closed 3 years ago

neilharvey commented 4 years ago

We are using 49 49 2A 00 as the signature for TIFF images but the first two bytes are actually the byte order mark. 49 49 indicates little endian ("II" - Intel byte order) and 4D 4D indicates big endian ("MM" - Motorola byte order).