{"success":true,"data":{"ext":"rgb","name":"Silicon Graphics RGB Bitmap","description":"Silicon Graphics RGB Bitmap is an image file format developed by Silicon Graphics, Inc. for storing raster graphics. It was used for textures, screenshots, and other computer graphics in SGI workstations and related imaging and visualization tools. The format is now largely legacy, but it is generally safe to open in modern viewers, though support may be limited, with occasional compatibility issues.","mime":["image/x-rgb"],"risk_level":"Safe","signatures":[{"hex":"01 DA 01 01 00 03","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":["dcx"],"usage":{"python":"def is_rgb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid RGB by magic bytes.\"\"\"\n    signature = bytes([0x01, 0xDA, 0x01, 0x01, 0x00, 0x03])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isRGB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x01, 0xDA, 0x01, 0x01, 0x00, 0x03]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsRGB(data []byte) bool {\n    signature := []byte{0x01, 0xDA, 0x01, 0x01, 0x00, 0x03}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"},"category":"Images"}}