Image MIME Reference
MrSID
Multi-resolution Seamless Image Database
image/x-mrsid-image
VS
Portable Anymap
image/x-portable-anymap
PNM
A complete technical comparison of Multi-resolution Seamless Image Database and Portable Anymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | MrSID | PNM |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | Yes | ✕ No |
| HDR Support | ✕ No | ✕ No |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Multi-resolution Seamless Image Database
image/x-mrsid-image
Extension
.sid
Container
Proprietary MrSID Container
Compression
Proprietary Wavelet (Lossy) / Proprietary Wavelet (Lossless)
Algorithm
Discrete Wavelet Transform (DWT)
Color Depth
8-bit (Grayscale), 24-bit (RGB), Multi-spectral (Multiple bands)
Developed by
Los Alamos National Laboratory / LizardTech (Extensis)
Released
1992
Magic Bytes
6D 73 69 64
Portable Anymap
image/x-portable-anymap
Extension
.pnm
Container
Netpbm
Compression
Uncompressed
Algorithm
None
Color Depth
1-bit (PBM), 8-bit to 16-bit (PGM), 24-bit to 48-bit (PPM)
Developed by
Jef Poskanzer (Netpbm Project)
Released
1988
Magic Bytes
50 31, 50 32, 50 33, 50 34, 50 35, or 50 36
Browser Support Comparison
| Browser | MrSID | PNM |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
MrSID
MrSID Strengths
- Incredible compression ratios enable multi-gigabyte geographical datasets to be stored on standard hard drives or transmitted easily
- Multi-resolution architecture means panning and zooming across a massive map is completely fluid, as the system decodes only the visible quadrant at the required zoom level
- Supports multi-spectral bands critical for remote sensing and agricultural GIS analysis
Limitations
- Deeply proprietary; creating or decoding MrSID files typically requires expensive commercial software or the proprietary Extensis DSDK
- Open-source geospatial libraries like GDAL require compiling against the proprietary SDK to legally enable MrSID support, causing licensing headaches for Linux server deployments
- Not natively viewable on the web without specialized geospatial map servers (like GeoServer or MapServer) tiling the image into PNGs or JPEGs on the fly
PNM
PNM Strengths
- Unparalleled simplicity: parsers and writers for PNM files can be written from scratch in C or Python in just a few minutes without relying on external libraries
- Serves as an excellent foundational teaching tool for computer science students learning about image arrays and raster graphics
- Flawlessly pipes through Unix command-line utilities for robust automated image processing (via the Netpbm suite)
Limitations
- Zero compression natively results in astronomical file sizes, making it entirely impractical for web delivery or consumer storage
- No support for standard metadata formats like EXIF, XMP, or ICC color profiles
- No native alpha channel support in the classic PNM specification (though the newer PAM format 'P7' addresses this)
When to choose which format
MrSID
Use MrSID when…
- Geographic Information Systems (GIS)
- Satellite Imagery Archival
- Aerial Orthophotography Mosaics
PNM
Use PNM when…
- Unix/Linux Command-Line Image Processing (Netpbm suite)
- Academic Computer Vision Research
- Intermediary Format for Image Format Conversion