Society of Motion Picture and Television Engineers

image/x-dpx

Safe

Magic Bytes

Offset: 0
53 44 50 58

Digital Picture Exchange (DPX) is a raster image format standardized by the Society of Motion Picture and Television Engineers (SMPTE). It is primarily utilized in motion picture post-production, visual effects, and digital intermediate workflows to store uncompressed, frame-based image data. Derived from the legacy Kodak Cineon format, DPX files are generally considered safe because they consist of static pixel information and metadata without support for executable code or embedded scripts.

Extension

.dpx

MIME Type

image/x-dpx

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .dpx files in Python

Python
def is_dpx(file_path: str) -> bool:
    """Check if file is a valid DPX by magic bytes."""
    signature = bytes([0x53, 0x44, 0x50, 0x58])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .dpx files in Node.js

Node.js
function isDPX(buffer: Buffer): boolean {
  const signature = Buffer.from([0x53, 0x44, 0x50, 0x58]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsDPX(data []byte) bool {
    signature := []byte{0x53, 0x44, 0x50, 0x58}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats