{"success":true,"data":{"ext":"odi","name":"ODI","description":"OpenDocument Image (ODI) is an XML-based file format in the OpenDocument family, standardized and maintained by OASIS. It is used for storing image-oriented content and may be handled by office suites and document editors that support OpenDocument formats. As a standards-based format, it is generally safe to open, though files from untrusted sources should still be treated cautiously because they may reference external content or contain complex embedded objects.","mime":["application/vnd.oasis.opendocument.image"],"risk_level":"Safe","signatures":[{"hex":"50 4B","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"}]}],"related":["odc","odf","odg","otg"],"usage":{"python":"def is_odi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ODI by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isODI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsODI(data []byte) bool {\n    signature := []byte{0x50, 0x4B}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Images"}}