Image MIME Reference
PPM
Portable Pixmap
image/x-portable-pixmap
VS
T.38 Fax over IP (FoIP)
image/t38
T.38
A complete technical comparison of Portable Pixmap and T.38 Fax over IP (FoIP) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | PPM | T.38 |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | ✕ No |
Portable Pixmap
image/x-portable-pixmap
Extension
.ppm
Container
Netpbm
Compression
Uncompressed
Algorithm
None
Color Depth
24-bit (RGB), 48-bit (RGB High Color)
Developed by
Jef Poskanzer (Netpbm Project)
Released
1988
Magic Bytes
50 33 (ASCII) or 50 36 (Binary)
T.38 Fax over IP (FoIP)
image/t38
Extension
.t38
Container
UDPTL or TCP (Network Transport)
Compression
Lossless (MH, MR, MMR / T.4, T.6)
Algorithm
MH (Modified Huffman)MR (Modified Read)MMR (Modified Modified Read)
Color Depth
1-bit (Monochrome B&W)
Developed by
ITU-T (International Telecommunication Union)
Released
1998
Magic Bytes
None (Network Stream)
Browser Support Comparison
| Browser | PPM | T.38 |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
PPM
PPM Strengths
- Absolute structural simplicity allows parsers and renderers (such as custom raytracers) to write directly to the format with virtually no overhead or external libraries
- Supports 16-bit per channel (48-bit total) precision, preserving deep color accuracy before converting to final delivery formats
- ASCII encoding ('P3') allows manual editing and visual inspection of RGB values directly within a text editor
Limitations
- Zero compression results in astronomical file sizes, making it entirely impractical for web delivery or consumer storage
- Does not natively support an alpha channel for transparency (this is handled by the newer PAM extension format within the Netpbm suite)
- Lacks support for modern metadata standards like EXIF, XMP, or embedded ICC color profiles
T.38
T.38 Strengths
- Designed specifically to overcome the timing and packet-loss issues that plague traditional fax over standard VoIP audio codecs (like G.711)
- Reduces bandwidth requirements by transmitting fax protocol data rather than uncompressed audio tones
- Universally supported by enterprise SIP trunks and Session Border Controllers (SBCs) for FoIP
Limitations
- Not an actual image file format, causing confusion due to its 'image/' MIME classification
- Extremely complex to implement correctly over lossy UDP networks (relies on UDPTL redundancy mechanisms)
- Zero support in web browsers or standard image viewing software
When to choose which format
PPM
Use PPM when…
- Intermediary Format for Image Format Conversion
- Academic Computer Graphics and Raytracing Output
- Unix/Linux Command-Line Image Pipelines
T.38
Use T.38 when…
- Fax over IP (FoIP) Transmissions
- SIP/SDP Media Negotiation
- VoIP Gateways and PBX Systems
- Enterprise Fax Servers