Image MIME Reference
AIMG
Universal AI Media Format (Image)
image/prs.aimg
VS
Portable Anymap
image/x-portable-anymap
PNM
A complete technical comparison of Universal AI Media Format (Image) and Portable Anymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | AIMG | PNM |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | Yes | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Universal AI Media Format (Image)
image/prs.aimg
Extension
.aimg
Container
Universal AI Media Format (AIMF)
Compression
Container (Inherits payload compression, e.g., PNG/JPEG)
Algorithm
None (Pass-through to embedded payload)
Color Depth
Inherited from payload (8-bit, 16-bit, HDR)
Developed by
AI Media Format (ai-mf) Open-Source Project
Released
2026
Magic Bytes
Varies (Custom AIMF Header Prepended to Payload)
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 | AIMG | PNM |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
AIMG
AIMG Strengths
- Provides a robust, tamper-evident cryptographic wrapper to definitively prove the origin of AI-generated media
- Header-first structure allows verifier nodes and APIs to validate an image's origin without needing to download or decode the entire massive pixel payload
Limitations
- Lacks native rendering support in browsers, requiring server-side extraction or client-side WebAssembly to display the embedded image
- Utilizes the IANA 'prs.' (personal/vanity) tree rather than the standards tree, which can cause strict enterprise firewalls to reject the MIME type as unverified
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
AIMG
Use AIMG when…
- AI Provenance and Attribution
- Verifiable Deepfake Prevention
- Cryptographic Media Watermarking
- Generative AI Workflows
PNM
Use PNM when…
- Unix/Linux Command-Line Image Processing (Netpbm suite)
- Academic Computer Vision Research
- Intermediary Format for Image Format Conversion