Image MIME Reference
PBM
Portable Bitmap
image/x-portable-bitmap
VS
Sony SRF Raw Image
image/x-sony-srf
Sony-SRF
A complete technical comparison of Portable Bitmap and Sony SRF Raw Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | PBM | Sony-SRF |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
Portable Bitmap
image/x-portable-bitmap
Extension
.pbm
Container
Netpbm
Compression
Uncompressed
Algorithm
None
Color Depth
1-bit (Monochrome)
Developed by
Jef Poskanzer (Netpbm Project)
Released
1988
Magic Bytes
50 31 (ASCII) or 50 34 (Binary)
Sony SRF Raw Image
image/x-sony-srf
Extension
.srf
Container
TIFF-based (Proprietary)
Compression
Uncompressed
Algorithm
None
Color Depth
12-bit (Per Channel)
Developed by
Sony Corporation
Released
2003
Magic Bytes
49 49 2A 00
Browser Support Comparison
| Browser | PBM | Sony-SRF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
PBM
PBM Strengths
- Absolute structural simplicity allows parsers to be written from scratch with just a few lines of code
- ASCII encoding allows manual editing and debugging directly within a standard text editor
- Serves as a flawless, lossless intermediary for 1-bit raster data like scanned documents or barcodes
Limitations
- Strictly limited to 1-bit monochrome images; cannot natively display shades of gray or color
- Lack of compression results in extremely large file sizes, particularly when using the ASCII 'P1' encoding
- No support for alpha transparency or modern metadata standards like EXIF
Sony-SRF
Sony-SRF Strengths
- Retains perfectly raw, unprocessed sensor data from legacy early-2000s cameras, allowing modern raw processors to extract much better dynamic range and color than the camera's original internal JPEG engine could
- Utilizes a standard TIFF container structure, ensuring broad compatibility with community-maintained open-source decoding libraries like LibRaw
Limitations
- Completely obsolete format that has long been abandoned in favor of ARW
- MIME detection via magic bytes is unreliable due to TIFF header spoofing, requiring deeper EXIF inspection for accurate routing
- Cannot be natively viewed in web browsers or standard operating system image viewers without specialized decoders
When to choose which format
PBM
Use PBM when…
- Optical Character Recognition (OCR) Pre-processing
- Unix/Linux Command-Line Image Pipelines
- Academic Image Processing Teaching
Sony-SRF
Use Sony-SRF when…
- Legacy Sony Cyber-shot Photography
- Non-destructive Image Post-Processing
- Early 2000s Raw Imaging Archival