{"success":true,"data":{"ext":"jpe","name":"Generic JPEG Image file","description":"Joint Photographic Experts Group JPEG images are a raster image format standardized by the Joint Photographic Experts Group and maintained through ISO/IEC and ITU-T specifications. They are commonly used for photographs, web graphics, digital cameras, and image sharing across operating systems and devices. JPEG is a long-standing format that uses lossy compression, so repeated editing can reduce quality, but it is generally safe to open in standard viewers.","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"}]},{"hex":"FF D8","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"FF D8 FF E0 4A 46 49 46 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["jpeg","jpg","jfif","jp2","avif","bmp"],"usage":{"python":"def is_jpe(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JPE 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 isJPE(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0xD8, 0xFF]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsJPE(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"}}