{"success":true,"data":{"ext":"xbm","name":"XBM","description":"X BitMap (XBM) is a plain-text monochrome image format created for the X Window System and historically maintained by the X Consortium, now supported by X.Org implementations. It is used for simple icons, cursor images, and small graphics in X applications, especially in environments that use lightweight text-based image assets. XBM is a legacy format and remains safe to handle, though its limited color support and text-based structure make it largely obsolete in modern workflows.","mime":["image/x-xbitmap"],"risk_level":"Safe","signatures":[{"hex":"23 64 65 66 69 6E 65 20","offset":0,"sources":[{"name":"X BitMap (C-macro header '#define ')","url":"https://en.wikipedia.org/wiki/X_BitMap"}]}],"related":[],"usage":{"python":"def is_xbm(file_path: str) -> bool:\n    \"\"\"Check if file is a valid XBM by magic bytes.\"\"\"\n    signature = bytes([0x23, 0x64, 0x65, 0x66, 0x69, 0x6E, 0x65, 0x20])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isXBM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x23, 0x64, 0x65, 0x66, 0x69, 0x6E, 0x65, 0x20]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsXBM(data []byte) bool {\n    signature := []byte{0x23, 0x64, 0x65, 0x66, 0x69, 0x6E, 0x65, 0x20}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Images"}}