Image MIME Reference
JPEG-LS
JPEG-LS
image/jls
VS
Apple PICT Image
image/x-pict
PICT
A complete technical comparison of JPEG-LS and Apple PICT Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | JPEG-LS | PICT |
|---|---|---|
| Transparency (Alpha) | ✕ No | Yes |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | ✕ No |
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
Apple PICT Image
image/x-pict
Extension
.pict.pct.pic
Container
QuickDraw Metafile
Compression
Uncompressed / Run-Length Encoding (RLE) / QuickTime Compressors (JPEG, SMC)
Algorithm
Apple PackBits (RLE)QuickTime Image Compression Manager (ICM)
Color Depth
1-bit, 2-bit, 4-bit, 8-bit (Indexed), 16-bit (High Color), 24-bit (True Color), 32-bit (RGBA)
Developed by
Apple Computer, Inc.
Released
1984
Magic Bytes
None (Requires offset parsing, e.g., 00 11 02 FF at byte 522)
Browser Support Comparison
| Browser | JPEG-LS | PICT |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
PICT
PICT Strengths
- Incredibly versatile for its time, allowing a single file to cleanly scale text and vector shapes while simultaneously housing raster photos
- Served as the flawless universal clipboard format for the classic Mac OS, enabling seamless copy/pasting between wildly different applications
Limitations
- Deeply tied to Apple's legacy QuickDraw graphics architecture, making it exceptionally difficult to write accurate third-party parsers on modern operating systems
- Lack of a standard magic header makes file detection unreliable without seeking 522 bytes deep into the file
- Completely unsupported in modern web environments and discontinued by Apple itself
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
PICT
Use PICT when…
- Classic Mac OS Clipboard Data
- Legacy Macintosh Desktop Publishing (Aldus PageMaker, QuarkXPress)
- 1980s/1990s Digital Clip Art