Image MIME Reference
DDS
DirectDraw Surface
image/vnd.ms-dds
VS
Portable Bitmap
image/x-portable-bitmap
PBM
A complete technical comparison of DirectDraw Surface and Portable Bitmap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | DDS | PBM |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | ✕ No |
DirectDraw Surface
image/vnd.ms-dds
Extension
.dds
Container
DirectDraw Surface
Compression
Block Compression (BC1-BC7) / DXTC / S3TC / Uncompressed (RGBA, Floating-Point)
Algorithm
DXT1-DXT5BC1-BC7ASTC / ETC2 (Extended)
Color Depth
8-bit, 16-bit, 24-bit, 32-bit (RGBA), 16-bit/32-bit Floating Point (HDR)
Developed by
Microsoft Corporation
Released
1999
Magic Bytes
44 44 53 20
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)
Browser Support Comparison
| Browser | DDS | PBM |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
DDS
DDS Strengths
- Massively reduces VRAM footprint and memory bandwidth usage because the GPU decodes the block compression in hardware
- Encapsulates complex texture arrays, volume textures, cubemaps, and entire mipmap chains within a single, highly structured file
- Supports high-dynamic-range (HDR) floating-point data for modern physically based rendering (PBR)
Limitations
- Block compression algorithms (like DXT) are lossy and can introduce ugly blocky artifacts, especially in smooth gradients or normal maps if not tuned properly
- Files are generally larger on the physical hard drive than highly compressed formats like PNG or WebP
- Zero support in web browsers or standard consumer image viewers
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
When to choose which format
DDS
Use DDS when…
- Real-Time 3D Game Textures
- DirectX and Vulkan Rendering Pipelines
- Skyboxes and Environment Cubemaps
- Volume Textures (3D Textures)
PBM
Use PBM when…
- Optical Character Recognition (OCR) Pre-processing
- Unix/Linux Command-Line Image Pipelines
- Academic Image Processing Teaching