Windows Metafile

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(MIME types)
(Deleted things that were moved to the Enhanced Metafile article)
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Graphics
 
|subcat=Graphics
|extensions={{ext|wmf}}, {{ext|emf}}, {{ext|wmz}}, {{ext|emz}}, {{ext|apm}}
+
|extensions={{ext|wmf}}, {{ext|wmz}}, {{ext|apm}}
|mimetypes={{mimetype|image/wmf}}, {{mimetype|image/emf}}
+
|mimetypes={{mimetype|image/wmf}}
|pronom={{PRONOM|x-fmt/119}}, {{PRONOM|x-fmt/153}}, {{PRONOM|fmt/344}}, {{PRONOM|fmt/345}}
+
|pronom={{PRONOM|x-fmt/119}}
 +
|released=1990
 
}}
 
}}
'''Windows Metafile''' ('''WMF''') is a graphics file format used mainly by old Microsoft Windows applications. It stores a list of commands which, when executed, generate an image.
+
:''For EMF, see [[Enhanced Metafile]].''
  
Windows has drivers to support WMF, allowing applications to either write to a WMF file, or draw on the screen, using the same API.
+
'''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 newer versions of the format are known as '''Enhanced Metafile''' ('''EMF''') and '''Enhanced Metafile Format Plus Extensions''' ('''EMF+''').
+
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 indicates a [[ZIP]]-compressed WMF file. The '''.emz''' extension is reportedly used for [[gzip]]-compressed EMF files.
+
The '''.wmz''' extension indicates a [[ZIP]]-compressed WMF file.
  
 
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.
 
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 ==
 
== Identification ==
WMF data (usually?) begins with the byte sequence <code>01 00 09 00</code> or <code>02 00 09 00</code>. 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 <code>D7 CD C6 9A</code>.
+
WMF data (usually?) begins with the byte sequence {{magic|01 00 09 00}} or {{magic|02 00 09 00}}. 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 {{magic|D7 CD C6 9A}}.
 
+
EMF files begin with bytes {{magic|01 00 00 00}} (representing record type EMR_HEADER), and have ASCII "<code>&nbsp;EMF</code>" (with the leading space) at file offset 40.
+
  
 
== Specifications ==
 
== Specifications ==
 
* [http://msdn.microsoft.com/en-us/library/cc215212.aspx Windows Metafile Format Specification]
 
* [http://msdn.microsoft.com/en-us/library/cc215212.aspx Windows Metafile Format Specification]
 
* [http://msdn.microsoft.com/en-us/library/dd145202%28v=VS.85%29.aspx Windows-Format Metafiles]
 
* [http://msdn.microsoft.com/en-us/library/dd145202%28v=VS.85%29.aspx Windows-Format Metafiles]
* [http://msdn.microsoft.com/en-us/library/cc230514.aspx Enhanced Metafile Format]
 
* [http://msdn.microsoft.com/en-us/library/cc230724.aspx Enhanced Metafile Format Plus Extensions]
 
 
== Metaformat files ==
 
 
* {{Synalysis|emf|Synalysis grammar file for EMF}}
 
  
 
== Software ==
 
== Software ==
 
* [http://inkscape.org/ Inkscape]
 
* [http://inkscape.org/ Inkscape]
 +
* [[Scribus]]
 
* [[Konvertor]]
 
* [[Konvertor]]
 
* [http://wvware.sourceforge.net/libwmf.html libwmf]
 
* [http://wvware.sourceforge.net/libwmf.html libwmf]
Line 42: Line 36:
  
 
== See also ==
 
== See also ==
 +
* [[Enhanced Metafile]]
 
* [[Segmented Hypergraphics]]
 
* [[Segmented Hypergraphics]]
  

Revision as of 17:01, 25 September 2016

File Format
Name Windows Metafile
Ontology
Extension(s) .wmf, .wmz, .apm
MIME Type(s) image/wmf
PRONOM x-fmt/119
Released 1990
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 indicates a ZIP-compressed WMF file.

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.

Contents

Identification

WMF data (usually?) begins with the byte sequence 01 00 09 00 or 02 00 09 00. 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 D7 CD C6 9A.

Specifications

Software

Sample files

See also

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox