{"success":true,"data":{"ext":"pict","name":"PICT","description":"PICT is a raster and vector graphics file format developed by Apple for the classic Macintosh platform and associated imaging software. It was used for storing illustrations, screen captures, clip art, and page-layout graphics in applications such as MacDraw and early desktop publishing tools. PICT is a legacy format and is now largely obsolete; it is generally safe to view, though support may be limited in modern software.","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":"78 56 34","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["pct","pic"],"usage":{"python":"def is_pict(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PICT 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 isPICT(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 IsPICT(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"}}