OpenEXR bitmap image format

image/aces

Safe

Magic Bytes

Offset: 0
76 2F 31 01 02 00 00 00

OpenEXR is a high-dynamic-range image file format originally developed by Industrial Light & Magic and currently maintained by the Academy Software Foundation. This professional specification is primarily utilized in visual effects and animation for compositing, photorealistic rendering, and storing deep color data. As an open-source project, the format is considered secure for professional environments, provided that users utilize current reference libraries to ensure proper parsing of complex multi-layered data.

Extension

.exr

MIME Type

image/aces

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .exr files in Python

Python
def is_exr(file_path: str) -> bool:
    """Check if file is a valid EXR by magic bytes."""
    signature = bytes([0x76, 0x2F, 0x31, 0x01, 0x02, 0x00, 0x00, 0x00])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .exr files in Node.js

Node.js
function isEXR(buffer: Buffer): boolean {
  const signature = Buffer.from([0x76, 0x2F, 0x31, 0x01, 0x02, 0x00, 0x00, 0x00]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsEXR(data []byte) bool {
    signature := []byte{0x76, 0x2F, 0x31, 0x01, 0x02, 0x00, 0x00, 0x00}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

GET /api/v1/exr
curl https://filesignature.org/api/v1/exr

Related Formats