{"success":true,"data":{"ext":"jxl","name":"JXL","description":"JPEG XL (JXL) is an image file format developed by the Joint Photographic Experts Group and maintained through the JPEG committee standardization process. It is used for web graphics, digital photography, and archival storage, with support for lossless and lossy compression, transparency, and wide color gamuts. It is not a legacy format, but untrusted files should still be opened with current software because image decoders can contain vulnerabilities.","mime":["image/jxl"],"risk_level":"Safe","signatures":[{"hex":"00 00 00 0C 4A 58 4C 20 0D 0A 87 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"},{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"FF 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":["jp2","jpf","jpgm","jpm","j2k","jpc"],"usage":{"python":"def is_jxl(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JXL by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x00, 0x0C, 0x4A, 0x58, 0x4C, 0x20, 0x0D, 0x0A, 0x87, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isJXL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x00, 0x0C, 0x4A, 0x58, 0x4C, 0x20, 0x0D, 0x0A, 0x87, 0x0A]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsJXL(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x00, 0x0C, 0x4A, 0x58, 0x4C, 0x20, 0x0D, 0x0A, 0x87, 0x0A}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"},"category":"Images"}}