{"success":true,"data":{"ext":"pct","name":"PCT","description":"PCT is a Macintosh Picture (PICT) image format developed by Apple for storing graphics on classic Mac systems. It was used for screen images, simple illustrations, and desktop publishing workflows, and it was commonly supported by graphics editors and page layout applications. The format is now legacy and largely obsolete, and while generally safe, older files may not be supported by 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"}]}],"related":["pic","pict"],"usage":{"python":"def is_pct(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PCT 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 isPCT(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 IsPCT(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"}}