{"success":true,"data":{"ext":"crw","name":"Canon digital camera RAW file","description":"Canon RAW (CRW) is a proprietary digital camera raw image format developed by Canon for use in its EOS and PowerShot cameras. It stores unprocessed sensor data for archiving, exposure correction, white balance adjustment, and professional editing in raw processors and photo management software. The format is generally safe to open, though support varies across modern applications, and it is largely a legacy format on newer Canon systems.","mime":["image/x-raw-canon"],"risk_level":"Safe","signatures":[{"hex":"49 49 1A 00 00 00 48 45 41 50 43 43 44 52","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":"49 49 1A 00 00 00 48 45 41 50 43 43 44 52 02 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["cr2","jpg"],"usage":{"python":"def is_crw(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CRW by magic bytes.\"\"\"\n    signature = bytes([0x49, 0x49, 0x1A, 0x00, 0x00, 0x00, 0x48, 0x45, 0x41, 0x50, 0x43, 0x43, 0x44, 0x52])\n    with open(file_path, \"rb\") as f:\n        return f.read(14) == signature","node":"function isCRW(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x49, 0x49, 0x1A, 0x00, 0x00, 0x00, 0x48, 0x45, 0x41, 0x50, 0x43, 0x43, 0x44, 0x52]);\n  return buffer.subarray(0, 14).equals(signature);\n}","go":"func IsCRW(data []byte) bool {\n    signature := []byte{0x49, 0x49, 0x1A, 0x00, 0x00, 0x00, 0x48, 0x45, 0x41, 0x50, 0x43, 0x43, 0x44, 0x52}\n    if len(data) < 14 {\n        return false\n    }\n    return bytes.Equal(data[:14], signature)\n}"},"category":"Images"}}