{"success":true,"data":{"ext":"dcx","name":"Graphics Multipage PCX bitmap file","description":"DCX is a multipage PCX bitmap file format originally developed by ZSoft Corporation for PC Paintbrush and related imaging software. It is used to bundle multiple PCX images into a single container for fax documents, scanned page sets, and other multipage graphics workflows, and it is supported by some legacy image editors and document management tools. The format is largely legacy, and although it is generally safe to open as an image, malformed files can still expose bugs in older software.","mime":["image/vnd.zbrush.dcx"],"risk_level":"Safe","signatures":[{"hex":"B1 68 DE 3A","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"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["rgb"],"usage":{"python":"def is_dcx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DCX by magic bytes.\"\"\"\n    signature = bytes([0xB1, 0x68, 0xDE, 0x3A])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isDCX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xB1, 0x68, 0xDE, 0x3A]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsDCX(data []byte) bool {\n    signature := []byte{0xB1, 0x68, 0xDE, 0x3A}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}