{"success":true,"data":{"ext":"cr3","name":"CR3","description":"CR3 is Canon’s RAW image file format, developed and maintained by Canon for storing unprocessed data from compatible digital cameras. It is used for high-quality photo capture, post-processing, and archival workflows in Canon camera software and third-party image editors that support Canon RAW files. The format is current and widely used; like other RAW files, it is generally safe to view, though untrusted files should be opened with updated software.","mime":["image/x-canon-cr3"],"risk_level":"Safe","signatures":[{"hex":"66 74 79 70 63 72 78 20","offset":4,"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":"66 74 79 70 63 72 78","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"43 52","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["avif","heic","heif","bmp","cr2","dib"],"usage":{"python":"def is_cr3(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CR3 by magic bytes at offset 4.\"\"\"\n    signature = bytes([0x66, 0x74, 0x79, 0x70, 0x63, 0x72, 0x78, 0x20])\n    with open(file_path, \"rb\") as f:\n        f.seek(4)\n        return f.read(8) == signature","node":"function isCR3(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x66, 0x74, 0x79, 0x70, 0x63, 0x72, 0x78, 0x20]);\n  if (buffer.length < 12) return false;\n  return buffer.subarray(4, 12).equals(signature);\n}","go":"func IsCR3(data []byte) bool {\n    signature := []byte{0x66, 0x74, 0x79, 0x70, 0x63, 0x72, 0x78, 0x20}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[4:12], signature)\n}"},"category":"Images"}}