Free webp to jpg
Image MIME Reference
JPEG-LS

JPEG-LS

image/jls
VS

JPEG XR Image (HEIF Container)

image/jxra
JPEG-XR-(HEIF)

A complete technical comparison of JPEG-LS and JPEG XR Image (HEIF Container) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature JPEG-LS JPEG-XR-(HEIF)
Transparency (Alpha) ✕ No Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No Yes
HDR Support Yes Yes
EXIF Metadata ✕ No Yes
ICC Color Profile ✕ No Yes
JPEG-LS
image/jls
Extension
.jls.jl
Container JPEG Bitstream
Compression Lossless / Near-Lossless (Predictive Coding)
Algorithm
LOCO-I (Low Complexity Lossless Compression for Images)Golomb-Rice Coding
Color Depth 8-bit, 12-bit, 16-bit (Per Channel)
Developed by Joint Photographic Experts Group (ISO/ITU-T) & HP Labs
Released 1999
Magic Bytes
FF D8 FF F7
Full JPEG-LS reference →
JPEG XR Image (HEIF Container)
image/jxra
Extension
.jxra
Container HEIF / ISOBMFF (ISO/IEC 23008-12 / Annex F of ITU-T T.832)
Compression Lossy / Lossless
Algorithm
JPEG XR (Lapped Biorthogonal Transform)
Color Depth 8-bit, 16-bit, 32-bit (Float)
Developed by ISO/IEC JTC 1 / ITU-T
Released 2019
Magic Bytes
XX XX XX XX 66 74 79 70 6A 78 72 41
Full JPEG-XR-(HEIF) reference →

Browser Support Comparison

Browser JPEG-LS JPEG-XR-(HEIF)
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
JPEG-LS

JPEG-LS Strengths

  • Provides state-of-the-art lossless compression ratios for continuous-tone images, often outperforming Lossless JPEG and JPEG 2000
  • Extremely fast and computationally inexpensive to encode/decode, requiring no complex floating-point math or DCTs
  • Highly resilient in constrained hardware environments, making it ideal for medical equipment and deep-space probes (e.g., Mars rovers)
Limitations
  • Zero native support in web browsers or standard consumer operating systems
  • Lacks the advanced resolution scalability and progressive decoding features found in JPEG 2000
  • Primarily relegated to niche enterprise sectors (healthcare/DICOM and aerospace) rather than consumer adoption
JPEG-XR-(HEIF)

JPEG-XR-(HEIF) Strengths

  • Combines the deep color (32-bit float) and mathematically lossless compression of JPEG XR with the robust metadata architecture of HEIF
  • Allows grouping multiple images, exposure brackets, or focal stacks into a single file collection
Limitations
  • Practically non-existent software and operating system support compared to standard HEIC or legacy JPEG XR (.jxr)
  • Zero web browser support, rendering it entirely unsuitable for public web deployment
  • Eclipsed by modern standards like AVIF and JPEG XL which offer superior compression with much broader industry backing

When to choose which format

JPEG-LS
Use JPEG-LS when…
  • Medical Imaging (DICOM Encapsulation)
  • Space and Planetary Imaging (NASA/ESA)
  • Industrial Machine Vision
  • Scientific Archival Storage
JPEG-XR-(HEIF)
Use JPEG-XR-(HEIF) when…
  • Specialized Archival
  • Experimental Imaging Workflows
  • High Dynamic Range (HDR) Imaging
Share this comparison