WordPerfect Graphics

WordPerfect Graphics (WPG) is an image file format associated with the WordPerfect word processor. Other names for it include WordPerfect Graphics Metafile and WordPerfect bitmap. The word Corel may also appear in the name.

WPG is fundamentally a vector format, but it was often used as a wrapper for a single raster image. Vector and "raster" WPG images are both common.

Format details
The Encyclopedia of Graphics File Formats states that WPG is a big-endian format, but that is incorrect. WPG is mainly a little-endian format; it also has a variable-length integer format that sometimes uses a mixed-endian format.

Format Specifications

 * WPG format description from the "Encyclopedia of graphics file formats"
 * WordPerfect 6.0 Format SDK, includes section on WPG 2.0.
 * Corel WordPerfect® Graphics (WPG) File Format

Identification
Some or all WPG files begin with bytes.

Some later WPG files can be contained in the "OLE2" document container format.

Software

 * Scribus
 * libwpg
 * ImageMagick
 * Konvertor
 * XnView
 * Inkscape

Sample files

 * http://cd.textfiles.com/wildcatgold/word/ → wpart_*.zip, wpg_*.zip
 * http://cd.textfiles.com/simtel/simtel9206/MSDOS/WORDPERF/ → CPG?.ZIP, WP50ART?.ZIP
 * http://cd.textfiles.com/powerpakgold/WP/ ... (see the index)
 * http://www.fileformat.info/format/wpg/sample/index.htm
 * http://cd.textfiles.com/clipart1996/ → HOLI, SPORTS, TRANSP, etc.
 * GCATWP32.ZIP, WCLIP11.ZIP
 * https://telparia.com/fileFormatSamples/image/wpg/
 * WordPerfect Clip Art Samples

Links

 * , from the Encyclopedia of Graphics File Formats