Free webp to jpg
Image MIME Reference
AVIF

AV1 Image File Format

image/avif
VS

X Pixmap

image/x-xpixmap
XPM

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

AVIF wins on browser support

Feature Support

Feature AVIF XPM
Transparency (Alpha) Yes Yes
Animation Support Yes ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
AV1 Image File Format
image/avif
Extension
.avif
Container HEIF / ISOBMFF
Compression AV1 Lossy / AV1 Lossless
Algorithm
AV1
Color Depth 8-bit, 10-bit, 12-bit
Developed by Alliance for Open Media (AOMedia)
Released 2019
Magic Bytes
XX XX XX XX 66 74 79 70 61 76 69 66
Full AVIF 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 AVIF XPM
Chrome Chrome
✓ 85+
Firefox Firefox
✓ 93+
Safari Safari
✓ 16+
Edge Edge
✓ 121+
IE IE (Legacy)
AVIF

AVIF Strengths

  • Best-in-class compression — typically 20–50% smaller than WebP at equivalent quality
  • Native HDR and wide color gamut (BT.2020) support
  • Supports 8, 10, and 12-bit color depth
Limitations
  • Encoding is highly CPU-intensive — significantly slower than JPEG or WebP
  • Requires Edge 121+ (not supported in earlier Edge versions)
  • Limited support in native desktop image viewers
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

AVIF
Use AVIF when…
  • Next-Gen Websites
  • HDR Photography
  • High-Quality Web Images
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