Windows Metafile


 * Not to be confused with Windows Media Metafile.
 * For EMF, see Enhanced Metafile.

Windows Metafile (WMF) is a vector graphics format native to Microsoft Windows 3.x. It stores a list of commands which, when executed, generate an image.

The term Windows Metafile usually refers specifically to WMF format, though it can also be an umbrella term that includes the successor format, Enhanced Metafile (EMF).

The .wmz extension reportedly indicates a ZIP-compressed WMF file, but the only .wmz files we've seen are actually gzip-compressed.

Most WMF files begin with a 22-byte "Aldus Placeable Metafile" header, which supplies suggested placement and scaling information. Some (mainly older) WMF files lack this header.

Identification
WMF data (usually?) begins with the byte sequence or. This sequence may appear at the beginning of a WMF file, but it is usually at offset 22, and the file begins with the Aldus Placeable Metafile signature of.

Specifications

 * &#x5b;MS-WMF&#x5d;: Windows Metafile Format - Current version
 * Windows Metafile Format (wmf) Specification - Unknown version, 2007
 * Microsoft Docs: Windows-Format Metafiles

Software

 * Inkscape
 * Scribus
 * Konvertor
 * XnView
 * ImageMagick
 * libUEMF
 * libwmf
 * UniConvertor
 * abydos

Sample files

 * http://cd.textfiles.com/10000gp2/COLORWMF/
 * http://cd.textfiles.com/cdreview/cdreview66/MULTIM/MEDI8OR/CLIPART/PICTURES/
 * https://telparia.com/fileFormatSamples/image/wmf/

Links

 * Wikipedia article
 * , from the Encyclopedia of Graphics File Formats.
 * Microsoft support: Windows Metafile Functions &amp; Aldus Placeable Metafiles
 * MSDN: WmfPlaceableFileHeader structure
 * http://wvware.sourceforge.net/caolan/ora-wmf.html