Image MIME Reference
AVIF
AV1 Image File Format
image/avif
VS
Portable Pixmap
image/x-portable-pixmap
PPM
A complete technical comparison of AV1 Image File Format and Portable Pixmap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
AVIF wins on browser support
Feature Support
| Feature | AVIF | PPM |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | Yes | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
AV1 Image File Format
image/avif
Extension
.avif
Container
HEIF / ISOBMFF
Compression
AV1 Lossy / AV1 Lossless
Algorithm
AV1
Color Depth
8-bit, 10-bit, 12-bit
Developed by
Alliance for Open Media (AOMedia)
Released
2019
Magic Bytes
XX XX XX XX 66 74 79 70 61 76 69 66
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)
Browser Support Comparison
| Browser | AVIF | PPM |
|---|---|---|
|
|
✓ 85+
|
✕ |
|
|
✓ 93+
|
✕ |
|
|
✓ 16+
|
✕ |
|
|
✓ 121+
|
✕ |
|
|
✕ | ✕ |
AVIF
AVIF Strengths
- Best-in-class compression — typically 20–50% smaller than WebP at equivalent quality
- Native HDR and wide color gamut (BT.2020) support
- Supports 8, 10, and 12-bit color depth
Limitations
- Encoding is highly CPU-intensive — significantly slower than JPEG or WebP
- Requires Edge 121+ (not supported in earlier Edge versions)
- Limited support in native desktop image viewers
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
When to choose which format
AVIF
Use AVIF when…
- Next-Gen Websites
- HDR Photography
- High-Quality Web Images
PPM
Use PPM when…
- Intermediary Format for Image Format Conversion
- Academic Computer Graphics and Raytracing Output
- Unix/Linux Command-Line Image Pipelines