{"success":true,"data":{"ext":"jif","name":"JIF","description":"JPEG Interchange Format (JIF) is an early file format for storing compressed images, defined as part of the JPEG standard and maintained by the Joint Photographic Experts Group. It is used for photographs and other continuous-tone images in web publishing, digital cameras, and general image storage. JIF is a legacy container and has largely been superseded by other JPEG interchange variants, though it remains broadly readable in modern 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":["jfi","jfif","jpe","jpeg","jpg"],"usage":{"python":"def is_jif(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JIF 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 isJIF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0xD8, 0xFF]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsJIF(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"}}