{"success":true,"data":{"ext":"emf","name":"Extended","description":"Extended Metafile (EMF) is a Windows graphics file format developed and maintained by Microsoft for storing device-independent vector images and drawing commands. It is used for clip art, illustrations, printer output, and exchange between applications that support Windows metafiles. As a legacy format, EMF remains widely supported for compatibility, and it is generally safe to open, though any file from an untrusted source should still be handled cautiously.","mime":["image/emf"],"risk_level":"Safe","signatures":[{"hex":"01 00 00 00","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":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["cgm","dwg","svg","svgz","wmf","ai"],"usage":{"python":"def is_emf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid EMF by magic bytes.\"\"\"\n    signature = bytes([0x01, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isEMF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x01, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsEMF(data []byte) bool {\n    signature := []byte{0x01, 0x00, 0x00, 0x00}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}