{"success":true,"data":{"ext":"jbig2","name":"JBIG2","description":"JBIG2 is a bi-level image compression format standardized by the Joint Bi-level Image Experts Group and maintained through ISO/IEC and related standards bodies. It is used to encode scanned documents, fax images, and monochrome page content in document workflows and archival systems. Although generally safe, JBIG2 support has appeared in some security exploits in document processors, so files from untrusted sources should be handled with updated software.","mime":["image/x-jbig2"],"risk_level":"Safe","signatures":[{"hex":"97 4A 42 32 0D 0A 1A 0A","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":["jb2"],"usage":{"python":"def is_jbig2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JBIG2 by magic bytes.\"\"\"\n    signature = bytes([0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isJBIG2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsJBIG2(data []byte) bool {\n    signature := []byte{0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Images"}}