Unknown type picture file

image/x-pict

Safe

Magic Bytes

Offset: 522
00 11 02 FF 0C 00

The PICT file format is a legacy graphics standard developed by Apple Computer for the original Macintosh operating systems. It serves as the primary metafile format for the QuickDraw imaging model, supporting both bitmap images and vector graphics within early desktop publishing applications. Although it was the default graphics format for early versions of Mac OS, it is now considered obsolete and has been replaced by modern standards such as PDF.

Extension

.pic

MIME Type

image/x-pict

Byte Offset

522

Risk Level

Safe

Validation Code

How to validate .pic files in Python

Python
def is_pic(file_path: str) -> bool:
    """
    Check if file is a valid PIC 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 .pic files in Node.js

Node.js
function isPIC(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 IsPIC(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/pic
curl https://filesignature.org/api/v1/pic

Related Formats