{"success":true,"data":{"ext":"wmf","name":"Windows graphics metafile","description":"Windows Metafile (WMF) is a legacy vector graphics file format created by Microsoft for the Windows operating system. It is used for storing and exchanging drawings, clip art, logos, and simple illustrations in applications such as Microsoft Office and legacy desktop publishing tools. WMF is an older format with limited modern use, and files from untrusted sources should be handled cautiously because historical implementations have had security issues.","mime":["image/wmf"],"risk_level":"Safe","signatures":[{"hex":"D7 CD C6 9A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Wmf.cs"}]},{"hex":"01 00 09 00 00 03","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"}]},{"hex":"D7 CD C6 9A 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"}]}],"related":["cgm","dwg","emf","svg","svgz","ai"],"usage":{"python":"def is_wmf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WMF by magic bytes.\"\"\"\n    signature = bytes([0xD7, 0xCD, 0xC6, 0x9A])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWMF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xD7, 0xCD, 0xC6, 0x9A]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWMF(data []byte) bool {\n    signature := []byte{0xD7, 0xCD, 0xC6, 0x9A}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}