Free webp to jpg
Image MIME Reference
HSJ2

JPEG 2000 Image Sequence (Obsolete)

image/hsj2
VS

X Pixmap

image/x-xpixmap
XPM

A complete technical comparison of JPEG 2000 Image Sequence (Obsolete) and X Pixmap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature HSJ2 XPM
Transparency (Alpha) Yes Yes
Animation Support Yes ✕ No
Progressive Loading Yes ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
JPEG 2000 Image Sequence (Obsolete)
image/hsj2
Extension
.hsj2
Container HEIF / ISOBMFF (ISO/IEC 15444-16 Obsolete)
Compression Lossy / Lossless
Algorithm
Motion JPEG 2000 (ISO/IEC 15444-3)
Color Depth 8-bit, 10-bit, 12-bit, 16-bit
Developed by ISO/IEC JTC 1 / ITU-T
Released 2019
Magic Bytes
XX XX XX XX 66 74 79 70 68 73 6A 32
Full HSJ2 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 HSJ2 XPM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
HSJ2

HSJ2 Strengths

  • Historically attempted to combine Motion JPEG 2000 sequences with the flexible metadata capabilities of the HEIF container
  • Supported mathematically lossless compression and scalable wavelet decoding
Limitations
  • Officially deprecated by the standardization body (ISO/IEC JTC 1)
  • Completely superseded by image/hej2k, rendering hsj2 files obsolete for any new development or archiving
  • Zero web browser compatibility and negligible modern software support
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

HSJ2
Use HSJ2 when…
  • Legacy Archival
  • Deprecated Workflows
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