Image MIME Reference
DVB-SUB
DVB Subtitle
image/vnd.dvb.subtitle
VS
PWG Raster Format
image/pwg-raster
PWG-Raster
A complete technical comparison of DVB Subtitle and PWG Raster Format — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | DVB-SUB | PWG-Raster |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | ✕ No |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | ✕ No |
DVB Subtitle
image/vnd.dvb.subtitle
Extension
.sub.sup.ts
Container
MPEG-2 Transport Stream (MPEG-TS) PES Packets
Compression
Lossless (Run-Length Encoding)
Algorithm
RLE (Run-Length Encoding)
Color Depth
2-bit (Indexed), 4-bit (Indexed), 8-bit (Indexed CLUT)
Developed by
DVB Project (ETSI)
Released
1997
Magic Bytes
20
PWG Raster Format
image/pwg-raster
Extension
.pwg.ras
Container
CUPS Raster v2 Container
Compression
PackBits (Run-Length Encoding)
Algorithm
PackBits (Apple RLE variant)
Color Depth
1-bit (Monochrome/K), 8-bit (Grayscale), 24-bit (sRGB / Adobe RGB), 32-bit (CMYK)
Developed by
IEEE-ISTO Printer Working Group (PWG)
Released
2011
Magic Bytes
52 61 53 32
Browser Support Comparison
| Browser | DVB-SUB | PWG-Raster |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
DVB-SUB
DVB-SUB Strengths
- Guarantees 100% accurate visual representation (fonts, colors, layouts) exactly as intended by the broadcaster
- Effortlessly supports complex character sets (e.g., Arabic, Asian languages) without relying on the client device possessing the necessary fonts
- Supports region-specific dynamic positioning to avoid obscuring important on-screen graphics or burned-in lower thirds
Limitations
- Requires significantly more bandwidth than text-based subtitles
- Inaccessible to screen readers and cannot be indexed by search engines
- Requires OCR (Optical Character Recognition) to translate back into standard text-based web formats
- Zero native support in HTML5 video elements
PWG-Raster
PWG-Raster Strengths
- The undisputed global standard for modern, driverless printing environments, eliminating the nightmare of installing manufacturer-specific print drivers
- Extremely lightweight to decode on embedded hardware, requiring minimal RAM buffers on the printer side
- Strict color space and resolution rules guarantee that the printed output will successfully process without syntax errors
Limitations
- Generates massive file sizes and network payloads compared to vector-based formats like PDF or PostScript, as every page is fully rasterized at 300+ DPI before transmission
- No support for native rendering in web browsers, image viewers, or graphic design software without specialized CUPS developer tools
- Cannot store complex metadata, vector text, or layers
When to choose which format
DVB-SUB
Use DVB-SUB when…
- Digital Television Broadcasts (DVB-T, DVB-S, DVB-C)
- IPTV and OTT Streaming
- Hardware Set-top Boxes
PWG-Raster
Use PWG-Raster when…
- Driverless Network Printing (IPP Everywhere)
- Apple AirPrint and Mopria Print Service Pipelines
- CUPS (Common UNIX Printing System) Spooling