{"success":true,"data":{"ext":"ktx","name":"Khronos texture filefor OpenGL and OpenGL ES applications","description":"KTX is a texture container file format defined by Khronos Group for storing GPU-ready image data for OpenGL and OpenGL ES applications. It is used to distribute compressed textures, mipmaps, and other texture resources in game engines, graphics tools, and cross-platform rendering workflows. The format is still in use and is generally considered safe, though texture files should always be obtained from trusted sources like any binary asset.","mime":[],"risk_level":"Safe","signatures":[{"hex":"AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_ktx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid KTX by magic bytes.\"\"\"\n    signature = bytes([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(12) == signature","node":"function isKTX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A]);\n  return buffer.subarray(0, 12).equals(signature);\n}","go":"func IsKTX(data []byte) bool {\n    signature := []byte{0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A}\n    if len(data) < 12 {\n        return false\n    }\n    return bytes.Equal(data[:12], signature)\n}"}}}