BigTIFF files; Tagged Image File Format files >4 GB
image/tiff
Magic Bytes
Offset: 0
49 49 2A 00
BigTIFF is an extension of the Tagged Image File Format (TIFF), originally developed by Adobe Systems, designed to overcome the four-gigabyte size limitation of the standard specification by utilizing 64-bit offsets. It is primarily used for high-resolution geospatial imaging, scientific data sets, and large-scale digital archiving. Although generally safe, the format's structural complexity necessitates the use of updated parsing libraries to mitigate potential memory-related vulnerabilities during the rendering of large, multi-layered image files.
Validation Code
How to validate .tiff files in Python
Python
def is_tiff(file_path: str) -> bool:
"""Check if file is a valid TIFF by magic bytes."""
signature = bytes([0x49, 0x49, 0x2A, 0x00])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .tiff files in Node.js
Node.js
function isTIFF(buffer: Buffer): boolean {
const signature = Buffer.from([0x49, 0x49, 0x2A, 0x00]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsTIFF(data []byte) bool {
signature := []byte{0x49, 0x49, 0x2A, 0x00}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/tiff
curl https://filesignature.org/api/v1/tiff