{"success":true,"data":{"ext":"svgz","name":"SVGZ","description":"SVGZ is a compressed Scalable Vector Graphics file format standardized by the World Wide Web Consortium (W3C) as part of the SVG specification. It is used for web graphics, icons, illustrations, logos, and other vector images that need smaller file sizes while remaining scalable in browsers and vector-editing applications. SVGZ files are generally safe to open, although, as with SVG, they may contain scripts, links, or external resources, so files from untrusted sources should be handled with standard caution.","mime":["image/svg+xml"],"risk_level":"Safe","signatures":[{"hex":"3C 73 76 67","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":["svg","cgm","dwg","emf","wmf","ai"],"usage":{"python":"def is_svgz(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SVGZ by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x73, 0x76, 0x67])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isSVGZ(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x73, 0x76, 0x67]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsSVGZ(data []byte) bool {\n    signature := []byte{0x3C, 0x73, 0x76, 0x67}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}