Free webp to jpg
Image MIME Reference
DVB-SUB

DVB Subtitle

image/vnd.dvb.subtitle
VS

X Pixmap

image/x-xpixmap
XPM

A complete technical comparison of DVB Subtitle and X Pixmap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature DVB-SUB XPM
Transparency (Alpha) Yes Yes
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
Full DVB-SUB reference →
X Pixmap
image/x-xpixmap
Extension
.xpm
Container C Source Code Header (.c / .h)
Compression Uncompressed (Source Code)
Algorithm
None
Color Depth Indexed Color (Custom Palette with RGB and Alpha 'None')
Developed by Daniel Dardailler and Colas Nahaboo (Bull / X Consortium)
Released 1989
Magic Bytes
2F 2A 20 58 50 4D 20 2A 2F (ASCII '/* XPM */')
Full XPM reference →

Browser Support Comparison

Browser DVB-SUB XPM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
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
XPM

XPM Strengths

  • Can be compiled directly into C or C++ source code without requiring an external asset loading mechanism
  • Human-readable palette mapping allows developers to inspect, modify, or hand-craft icons directly within a text editor
  • Native support for color palettes and transparency via the 'None' keyword
Limitations
  • Extremely inefficient storage structure for large images, resulting in massive file bloat compared to binary formats like PNG
  • Completely obsolete and unsupported in modern web browsers
  • Parsing overhead requires compiling or interpreting text-based color tables at runtime

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
XPM
Use XPM when…
  • X Window System (X11) Application Icons and Cursors
  • Embedded C/C++ Firmware Color UI Assets
  • Early Linux Desktop Environment Themes
Share this comparison