Sponsored Links
-->

Sunday, June 24, 2018

The MetaFileExplorer
src: www.flounder.com

Windows Metafile (WMF) is an image file format originally designed for Microsoft Windows in the 1990s. Windows Metafiles are intended to be portable between applications and may contain both vector graphics and bitmap components. It acts in a similar manner to SVG files.

Essentially, a WMF file stores a list of function calls that have to be issued to the Windows Graphics Device Interface (GDI) layer to display an image on screen. Since some GDI functions accept pointers to callback functions for error handling, a WMF file may erroneously include executable code.

WMF is a 16-bit format introduced in Windows 3.0. It is the native vector format for Microsoft Office applications such as Word, PowerPoint, and Publisher. As of 2015 revision 12 of the Windows Metafile Format specification is available for online reading or download as PDF.


Video Windows Metafile



Specifications and patents

The original 16 bit WMF file format was fully specified in volume 4 of the 1992 Windows 3.1 SDK documentation (at least if combined with the descriptions of the individual functions and structures in the other volumes), but that specification was vague about a few details. These manuals were published as printed books available in bookstores with no click through EULA or other unusual licensing restrictions (just a general warning that if purchased as part of a software bundle, the software would be subject to one).

Over time the existence of that historic specification was largely forgotten and some alternative implementations resorted to reverse engineering to figure out the file format from existing WMF files, which was difficult and error prone. In September 2006, Microsoft again published the WMF file format specification in the context of the Microsoft Open Specification Promise, promising to not assert patent rights to file format implementors.


Maps Windows Metafile



Variants

In 1993, the 32-bit version of Win32/GDI introduced the Enhanced Metafile (EMF), a newer version with additional commands. EMF is also used as a graphics language for printer drivers. Microsoft recommends that "Windows-format" (WMF) functions only "rarely" be used and "enhanced-format" (EMF) functions be used instead.

With the release of Windows XP, the Enhanced Metafile Format Plus Extensions (EMF+) format was introduced. EMF+ provides a way to serialize calls to the GDI+ API in the same way that WMF/EMF stores calls to GDI.

There are also compressed versions of Windows Metafiles known as Compressed Windows Metafile (WMZ) and Compressed Windows Enhanced Metafile (EMZ), which are basically gzip compressed WMF and EMF files correspondingly.


Karel Donk's Blog » Preview WMF and EMF images in Windows File ...
src: blog.kareldonk.com


Vulnerabilities

Over the years several vulnerabilities in Windows Metafile handling were reported.


sK1 0.9.1 rev. 730 Review
src: news-cdn.softpedia.com


Implementations

The WMF format was designed to be executed by the Windows GDI layer in order to restore the image, but as the WMF binary files contain the definition of the GDI graphic primitives that constitute this image, it is possible to design alternative libraries that render WMF binary files, like the Kyktir application does, or convert them into other graphic formats. For example, the Batik library is able to render WMF files and convert them to their Scalable Vector Graphics (SVG) equivalent. The Vector Graphics package of the FreeHEP Java library allows the saving of Java2D drawings as Enhanced Metafiles (EMF). Inkscape and XnView can export to WMF or EMF.


Tutorial: How to Save Powerpoint Presentation & Animation Into ...
src: i.ytimg.com


See also

  • PostScript
  • Vector Markup Language

sK1 0.9.1 rev. 730 Review
src: news-cdn.softpedia.com


References


The MetaFileExplorer
src: www.flounder.com


External links

  • Windows Metafile Format Specification from Microsoft
  • MSDN: Windows GDI- Metafiles
  • File Format Summary at fileformat.info
  • Windows Metafile FAQ

Source of the article : Wikipedia

Comments
0 Comments