Image MIME Reference
DDS
DirectDraw Surface
image/vnd.ms-dds
VS
DICOM Run-Length Encoding
image/dicom-rle
DICOM-RLE
A complete technical comparison of DirectDraw Surface and DICOM Run-Length Encoding — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | DDS | DICOM-RLE |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | Yes |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | Yes |
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
DICOM Run-Length Encoding
image/dicom-rle
Extension
.dcm.dicom
Container
DICOM (PS3.10)
Compression
Lossless (RLE)
Algorithm
Run-Length Encoding (RLE)
Color Depth
8-bit, 16-bit, 24-bit
Developed by
National Electrical Manufacturers Association (NEMA) / ACR
Released
1993
Magic Bytes
44 49 43 4D (at byte offset 128)
Browser Support Comparison
| Browser | DDS | DICOM-RLE |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
DICOM-RLE
DICOM-RLE Strengths
- Guarantees lossless preservation of critical medical data necessary for diagnostics
- Extremely robust metadata structure containing patient information, modality, and spatial geometry
- Faster to encode and decode than complex compression schemes like JPEG 2000
Limitations
- RLE compression offers very low compression ratios compared to modern codecs like JPEG-LS or JPEG 2000
- Zero support in web browsers or standard consumer image viewers
- Strict data privacy regulations (HIPAA/GDPR) make handling DICOM files complex due to embedded PHI
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)
DICOM-RLE
Use DICOM-RLE when…
- Medical Imaging
- Ultrasound
- X-Rays / CT / MRI
- PACS Archives