Image MIME Reference
APNG
Animated Portable Network Graphics
image/vnd.mozilla.apng
VS
DirectDraw Surface
image/vnd.ms-dds
DDS
A complete technical comparison of Animated Portable Network Graphics and DirectDraw Surface — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
APNG wins on browser support
Feature Support
| Feature | APNG | DDS |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | Yes | ✕ No |
| Progressive Loading | Yes | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Animated Portable Network Graphics
image/vnd.mozilla.apng
Extension
.apng.png
Container
PNG Chunk Stream
Compression
Deflate (Lossless)
Algorithm
Deflate (zlib)
Color Depth
8-bit (Indexed), 24-bit (TrueColor), 32-bit (RGBA)
Developed by
Mozilla Corporation (Stuart Parmenter & Vladimir Vukićević)
Released
2004
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
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
Browser Support Comparison
| Browser | APNG | DDS |
|---|---|---|
|
|
✓ 59
|
✕ |
|
|
✓ 3
|
✕ |
|
|
✓ 8
|
✕ |
|
|
✓ 79
|
✕ |
|
|
✕ | ✕ |
APNG
APNG Strengths
- Supports 8-bit alpha transparency, completely solving the ugly 'white halo' problem inherent to GIFs
- Gracefully degrades; viewers that do not support APNG will render a perfectly valid, static PNG of the first frame
- Provides lossless compression that retains absolute pixel-perfect quality for UI elements and line art
Limitations
- Because it relies on lossless Deflate compression, file sizes for complex, video-like animations can be massive compared to lossy formats like WebP or AVIF
- Was initially rejected by the official PNG group, delaying its adoption for nearly a decade
- Lacks native hardware decoding acceleration, unlike video-based animated formats (like MP4 or WebM)
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
When to choose which format
APNG
Use APNG when…
- High-Quality Web Animations
- Stickers (Apple iMessage, LINE, Discord)
- UI Loaders with Alpha Transparency
- GIF Replacement
DDS
Use DDS when…
- Real-Time 3D Game Textures
- DirectX and Vulkan Rendering Pipelines
- Skyboxes and Environment Cubemaps
- Volume Textures (3D Textures)