{"success":true,"data":{"ext":"pcx","name":"ZSOFT Paintbrush file","description":"The ZSoft Paintbrush file format (PCX) is a raster image format created by ZSoft Corporation for the PC Paintbrush program. It was used for storing and exchanging bitmap graphics in early DOS and Windows applications, including scanned images, screenshots, and simple illustrations. PCX is now largely a legacy format, and while it is generally safe, some modern software may have limited support for its older variants.","mime":["image/vnd.zbrush.pcx"],"risk_level":"Safe","signatures":[{"hex":"0A","offset":0,"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":"0A 01","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["avif","bmp","cr2","cr3","dib","exr"],"usage":{"python":"def is_pcx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PCX by magic bytes.\"\"\"\n    signature = bytes([0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(1) == signature","node":"function isPCX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x0A]);\n  return buffer.subarray(0, 1).equals(signature);\n}","go":"func IsPCX(data []byte) bool {\n    signature := []byte{0x0A}\n    if len(data) < 1 {\n        return false\n    }\n    return bytes.Equal(data[:1], signature)\n}"},"category":"Images"}}