{"success":true,"data":{"ext":"cmx","name":"Corel Presentation Exchange","description":"Corel Presentation Exchange (CMX) is a vector-graphics interchange format developed by Corel for exchanging illustration data between Corel applications and other software. It is used for storing drawings, clip art, and technical illustrations, and was commonly supported by CorelDRAW and related desktop publishing tools. CMX is a legacy format, and while it is generally safe to open, older files may not render consistently in modern viewers.","mime":["image/x-cmx"],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["clb","cpt","psp","shw","ani","cda"],"usage":{"python":"def is_cmx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CMX by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isCMX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsCMX(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}