{"success":true,"data":{"ext":"jfi","name":"JFI","description":"JFI is a JPEG image file format defined by the Joint Photographic Experts Group and standardized through ISO/IEC and ITU-T. It is used for storing and exchanging compressed photographs and other continuous-tone images in web content, digital cameras, and general-purpose image editors. As with other JPEG variants, it is generally safe to open, though malformed files can still trigger decoder bugs in older software.","mime":["image/jpeg"],"risk_level":"Safe","signatures":[{"hex":"FF D8 FF","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":["jfif","jif","jpe","jpeg","jpg"],"usage":{"python":"def is_jfi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JFI by magic bytes.\"\"\"\n    signature = bytes([0xFF, 0xD8, 0xFF])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isJFI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0xD8, 0xFF]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsJFI(data []byte) bool {\n    signature := []byte{0xFF, 0xD8, 0xFF}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"},"category":"Images"}}