Image MIME Reference
Corel-CMX
Corel Metafile Exchange
image/x-cmx
VS
Portable Graymap
image/x-portable-graymap
PGM
A complete technical comparison of Corel Metafile Exchange and Portable Graymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Corel-CMX | PGM |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Corel Metafile Exchange
image/x-cmx
Extension
.cmx
Container
RIFF (Resource Interchange File Format)
Compression
Uncompressed Vector Commands / Embedded Raster Compression (Optional)
Algorithm
None (Vector)
Color Depth
Vector Data, Supports embedded bitmaps
Developed by
Corel Corporation
Released
Mid-1990s
Magic Bytes
52 49 46 46 (skip 4) 43 4D 58 31
Portable Graymap
image/x-portable-graymap
Extension
.pgm
Container
Netpbm
Compression
Uncompressed
Algorithm
None
Color Depth
8-bit (Grayscale), 16-bit (Grayscale)
Developed by
Jef Poskanzer (Netpbm Project)
Released
1988
Magic Bytes
50 32 (ASCII) or 50 35 (Binary)
Browser Support Comparison
| Browser | Corel-CMX | PGM |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
Corel-CMX
Corel-CMX Strengths
- Preserves rich vector attributes and layer groupings native to the Corel drawing engine better than standard WMF files
- Significantly smaller footprint than full CDR project files, making it excellent for early CD-ROM clip art distribution
- Maintains decent support in the open-source community thanks to libraries like libcdr
Limitations
- Proprietary format strictly tied to Corel's ecosystem, often causing compatibility issues with Adobe software
- Zero support in web browsers; must be converted to SVG for modern web usage
- Largely obsolete for modern workflows, superseded by PDF and SVG
PGM
PGM Strengths
- Extremely simple format allows custom parsers to be written from scratch in minimal time
- Supports 16-bit precision, making it highly valuable for scientific, medical, and height-map data where 8-bit precision is insufficient
- ASCII encoding ('P2') allows manual editing and visual inspection of pixel values directly within a text editor
Limitations
- Strictly limited to grayscale; cannot display color
- Lack of compression results in massive file sizes, making it entirely impractical for web delivery or consumer storage
- Does not support alpha transparency or modern metadata structures
When to choose which format
Corel-CMX
Use Corel-CMX when…
- Legacy CorelDRAW Clip Art Collections
- Vector Graphic Exchange within Corel Suite
- Historical Desktop Publishing Assets
PGM
Use PGM when…
- Computer Vision and Machine Learning Pre-processing
- Scientific and Medical Image Processing
- Unix/Linux Command-Line Image Pipelines