{"success":true,"data":{"ext":"pic","name":"Unknown type picture file","description":"The PIC file format is a Macintosh picture format associated with Apple’s PICT graphics standard, originally developed and maintained by Apple for classic Mac OS. It was used for storing and exchanging bitmap and vector images in desktop publishing, screenshots, and document graphics. The format is largely legacy and uncommon on modern systems; like other older image formats, files from untrusted sources should be handled with standard caution.","mime":["image/x-pict"],"risk_level":"Safe","signatures":[{"hex":"00 11 02 FF 0C 00","offset":522,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"01 00 00 00 01","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["pct","pict"],"usage":{"python":"def is_pic(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PIC by magic bytes at offset 522.\"\"\"\n    signature = bytes([0x00, 0x11, 0x02, 0xFF, 0x0C, 0x00])\n    with open(file_path, \"rb\") as f:\n        f.seek(522)\n        return f.read(6) == signature","node":"function isPIC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x11, 0x02, 0xFF, 0x0C, 0x00]);\n  if (buffer.length < 528) return false;\n  return buffer.subarray(522, 528).equals(signature);\n}","go":"func IsPIC(data []byte) bool {\n    signature := []byte{0x00, 0x11, 0x02, 0xFF, 0x0C, 0x00}\n    if len(data) < 528 {\n        return false\n    }\n    return bytes.Equal(data[522:528], signature)\n}"},"category":"Images"}}