Image MIME Reference
PGM
Portable Graymap
image/x-portable-graymap
VS
Sigma X3F RAW Image
image/x-sigma-x3f
Sigma-X3F
A complete technical comparison of Portable Graymap and Sigma X3F RAW Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | PGM | Sigma-X3F |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
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)
Sigma X3F RAW Image
image/x-sigma-x3f
Extension
.x3f
Container
Foveon Proprietary Header
Compression
Uncompressed / Proprietary Lossless
Algorithm
NoneFoveon Proprietary Huffman-based
Color Depth
12-bit (Per Channel), 14-bit (Per Channel)
Developed by
Foveon, Inc. / Sigma Corporation
Released
2002
Magic Bytes
46 4F 56 62
Browser Support Comparison
| Browser | PGM | Sigma-X3F |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
Sigma-X3F
Sigma-X3F Strengths
- Provides absolute per-pixel color accuracy without the interpolation artifacts or moiré patterns typical of Bayer-sensor RAW files
- Unique 'FOVb' magic byte signature prevents accidental misidentification by standard file sniffers, unlike many TIFF-based raw formats
- Incredible sharpness and detail resolution at the raw sensor level
Limitations
- Decoding is extremely computationally expensive and completely proprietary, meaning third-party software often struggles to match the color science of Sigma's own (famously slow) Photo Pro application
- Massive file sizes because it records three complete RGB channels for every single spatial pixel coordinate
- Zero support in web browsers or standard OS image viewers
When to choose which format
PGM
Use PGM when…
- Computer Vision and Machine Learning Pre-processing
- Scientific and Medical Image Processing
- Unix/Linux Command-Line Image Pipelines
Sigma-X3F
Use Sigma-X3F when…
- Professional Digital Photography
- Sigma / Foveon High-Acuity Imaging
- Non-destructive RAW Post-Processing