Free webp to jpg
Image MIME Reference
JPEG-LS

JPEG-LS

image/jls
VS

JPEG XS Image (HEIF Container)

image/jxsi
JPEG-XS-(HEIF)

A complete technical comparison of JPEG-LS and JPEG XS 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-XS-(HEIF)
Transparency (Alpha) ✕ No Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
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 XS Image (HEIF Container)
image/jxsi
Extension
.jxsi.jxs.hif
Container HEIF / ISOBMFF (ISO/IEC 23008-12)
Compression Lossy (Visually Lossless) / Mathematically Lossless
Algorithm
JPEG XS (ISO/IEC 21122-1)
Color Depth 8-bit, 10-bit, 12-bit, 14-bit, 16-bit
Developed by Joint Photographic Experts Group (JPEG)
Released 2019
Magic Bytes
XX XX XX XX 66 74 79 70 6A 78 73 69
Full JPEG-XS-(HEIF) reference →

Browser Support Comparison

Browser JPEG-LS JPEG-XS-(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-XS-(HEIF)

JPEG-XS-(HEIF) Strengths

  • Provides sub-millisecond encoding and decoding latency while retaining visually lossless quality
  • Brings the extensive metadata, EXIF, XMP, and color-profiling capabilities of the HEIF container to JPEG XS
  • Allows grouping of multiple high-quality JPEG XS frames into a single collection file
Limitations
  • Zero web browser compatibility, limiting it entirely to professional and industrial hardware workflows
  • Extremely niche adoption compared to standard HEVC-based HEIC or raw JPEG XS codestreams
  • Requires custom parsing logic to extract the JPEG XS codestream from the HEIF boxes

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-XS-(HEIF)
Use JPEG-XS-(HEIF) when…
  • Live Broadcast Infrastructure
  • Medical Imaging & Archival
  • Video over IP Networks
  • Automotive & Drone Systems
Share this comparison