Free webp to jpg
WMF

Windows Metafile

image/x-wmf Released 1990 · by Microsoft Corporation

The image/x-wmf MIME type represents the Windows Metafile (WMF) format, a native vector image format introduced by Microsoft in the early 1990s for the Windows operating system. As a 16-bit metafile, WMF files store images as a sequence of Graphics Device Interface (GDI) function calls and commands rather than static pixel grids. This allows the vector shapes, lines, and text to scale infinitely without losing quality. It was widely used in early versions of Microsoft Office (such as Word and PowerPoint) for clip art and vector graphics. Due to inherent architectural security vulnerabilities in how early Windows systems parsed GDI commands, and its supersession by the more robust Enhanced Metafile (EMF) format, WMF is largely obsolete and deprecated for modern web and application development.

Vector & Metafile Graphics Transparency Production Ready

Technical Specifications

MIME Type
image/x-wmf
Extensions
.wmf.emf
Container
Windows GDI Metafile Command Stream
Compression
Uncompressed (Command Stream)
Algorithms
None
Color Depth
Varies based on GDI rendering engine
Metadata
None
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support
Official Specification
Aliases: image/wmfapplication/x-msmetafileapplication/wmf

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
D7 CD C6 9A (Aldus Placeable Metafile Header) or 01 00 09 00 (Standard WMF Header)
ASCII: \xD7\xCD\xC6\x9A or \x01\x00\x09\x00
HTTP Headers
Content-Type: image/wmf
Content-Type: image/x-wmf
Content-Type: application/x-msmetafile
HTML Accept Attribute
accept="image/wmf, image/x-wmf, application/x-msmetafile, .wmf"

Browser Support Matrix

Browser Status Min Version
Chrome Chrome
Not Supported
Firefox Firefox
Not Supported
Safari Safari
Not Supported
Edge Edge
Not Supported
Internet Explorer Internet Explorer
Supported Legacy

Advantages & Limitations

Advantages
  • Infinitely scalable vector format that remains remarkably compact for simple geometric illustrations and charts
  • Historically served as a seamless conduit for copying and pasting vector graphics between disparate Windows applications via the system clipboard
Limitations
  • Notoriously plagued by historic security vulnerabilities, making raw WMF parsing a vector for exploits in legacy software
  • Completely obsolete and unsupported in modern web environments (browsers cannot render them)
  • Strictly tied to the Windows GDI architecture, making cross-platform rendering inconsistent across Linux and macOS

Developer Code Snippets

import magic
# Libmagic can identify WMF files using the APM or GDI headers
print(magic.from_file('clipart.wmf', mime=True)) # Outputs 'image/x-wmf' or 'image/wmf'
const fs = require('fs');
// Manually checking for the Aldus Placeable Metafile header (D7 CD C6 9A)
const buffer = Buffer.alloc(4);
const fd = fs.openSync('clipart.wmf', 'r');
fs.readSync(fd, buffer, 0, 4, 0);
fs.closeSync(fd);
const isWMF = (buffer[0] === 0xD7 && buffer[1] === 0xCD && buffer[2] === 0xC6 && buffer[3] === 0x9A) || (buffer[0] === 0x01 && buffer[1] === 0x00);
console.log('Is Windows Metafile (WMF):', isWMF);
import (
    "bytes"
    "net/http"
)
// Native Go HTTP detection does not recognize WMF.
// Check directly for the APM or GDI signatures:
// isWMF := bytes.HasPrefix(buf, []byte{0xD7, 0xCD, 0xC6, 0x9A}) || bytes.HasPrefix(buf, []byte{0x01, 0x00, 0x09, 0x00})
$mime = mime_content_type('clipart.wmf');
echo $mime; // Standard PHP setups will return 'image/x-wmf' or 'image/wmf' depending on the system magic database

File Detection Steps

How to programmatically detect a image/x-wmf file by reading its raw bytes:

  1. 1 Many WMF files begin with an Aldus Placeable Metafile (APM) header. Check the first 4 bytes for the signature Hex: D7 CD C6 9A.
  2. 2 If the file does not have an APM header, standard 16-bit WMF files typically begin with the record type and version header, starting with Bytes Hex: 01 00 09 00 or 02 00 09 00.
  3. 3 Because WMF files execute GDI rendering commands, security systems frequently flag them if received via untrusted public file uploads due to historical remote code execution vulnerabilities.

Software Support

L
LibreOffice Draw
A
Adobe Illustrator
I
Inkscape
ImageMagick ImageMagick

Conversion Tools

Share & Embed

Markdown Badge
WMF Format Badge
[![WMF Format](https://freewebptojpg.com/mime/image/wmf/badge.svg)](https://freewebptojpg.com/mime/image/wmf)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/wmf/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="WMF Specs"></iframe>

JSON API

All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.

GET https://freewebptojpg.com/mime/image/wmf.json Open JSON
Free to use
No auth required
CORS enabled
Use from any domain
Cached 24h
Cache-Control headers set

Frequently Asked Questions

What is a WMF file?

A WMF (Windows Metafile) file is a legacy vector graphics format created by Microsoft. Instead of storing pixels like a JPEG or PNG, it stores a list of drawing commands (like 'draw a line here' or 'fill a rectangle with blue') using the Windows GDI API.

What is the difference between WMF and EMF?

WMF is an older 16-bit format designed for 16-bit versions of Windows (like Windows 3.1). EMF (Enhanced Metafile) is its 32-bit successor, introduced with Windows 95, which supports more advanced GDI commands and better device independence.

Can I display WMF files on a modern website?

No. Modern web browsers do not natively support WMF or EMF files. To display them on a website, you must convert them to SVG, PNG, or WebP using graphics libraries or conversion tools like LibreOffice or ImageMagick.

Related Formats

Share this format