PICT

image/x-pict

Safe

Magic Bytes

Offset: 522
00 11 02 FF 0C 00

PICT format is a standard graphics file format developed by Apple Computer as the default metafile format for original Macintosh operating systems. It supports both vector graphics and bitmap images, serving as the primary exchange format for MacDraw, MacPaint, and early desktop publishing applications. Now considered a legacy format, PICT was largely superseded by PDF with the transition to Mac OS X and is generally considered safe for modern viewing environments.

Extension

.pict

MIME Type

image/x-pict

Byte Offset

522

Risk Level

Safe

Validation Code

How to validate .pict files in Python

Python
def is_pict(file_path: str) -> bool:
    """
    Check if file is a valid PICT by magic bytes.
    Signature offset: 522 bytes
    """
    signature = bytes([0x00, 0x11, 0x02, 0xFF, 0x0C, 0x00])
    with open(file_path, "rb") as f:
        f.seek(522)
        return f.read(6) == signature

How to validate .pict files in Node.js

Node.js
function isPICT(buffer: Buffer): boolean {
  // Signature offset: 522 bytes
  const signature = Buffer.from([0x00, 0x11, 0x02, 0xFF, 0x0C, 0x00]);
  if (buffer.length < 528) return false;
  return buffer.subarray(522, 528).equals(signature);
}
Go
func IsPICT(data []byte) bool {
    // Signature offset: 522 bytes
    signature := []byte{0x00, 0x11, 0x02, 0xFF, 0x0C, 0x00}
    if len(data) < 528 {
        return false
    }
    return bytes.Equal(data[522:528], signature)
}

API Endpoint

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

Related Formats