{"success":true,"data":{"ext":"nitf","name":"NITF","description":"National Imagery Transmission Format (NITF) is a standardized raster image and metadata file format developed by the U.S. Department of Defense and maintained by the National Geospatial-Intelligence Agency (NGA). It is used for military, intelligence, geospatial, and remote-sensing imagery, including satellite products, aerial photography, and related annotations. The format is generally safe, though files from untrusted sources should still be handled carefully because they can contain large embedded datasets and metadata.","mime":["image/nitf"],"risk_level":"Safe","signatures":[{"hex":"4E 49 54 46 30 31 2E 31 30","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":"4E 49 54 46 30 32 2E 30 30 30","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":"4E 49 54 46 30 32 2E 31 30 30","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":["ntf"],"usage":{"python":"def is_nitf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid NITF by magic bytes.\"\"\"\n    signature = bytes([0x4E, 0x49, 0x54, 0x46, 0x30, 0x31, 0x2E, 0x31, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(9) == signature","node":"function isNITF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4E, 0x49, 0x54, 0x46, 0x30, 0x31, 0x2E, 0x31, 0x30]);\n  return buffer.subarray(0, 9).equals(signature);\n}","go":"func IsNITF(data []byte) bool {\n    signature := []byte{0x4E, 0x49, 0x54, 0x46, 0x30, 0x31, 0x2E, 0x31, 0x30}\n    if len(data) < 9 {\n        return false\n    }\n    return bytes.Equal(data[:9], signature)\n}"},"category":"Images"}}