Image MIME Reference
DICOM-RLE
DICOM Run-Length Encoding
image/dicom-rle
VS
JPEG Stereo Image
image/x-jps
JPS
A complete technical comparison of DICOM Run-Length Encoding and JPEG Stereo Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
JPS wins on browser support
Feature Support
| Feature | DICOM-RLE | JPS |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | Yes | ✕ No |
| Progressive Loading | ✕ No | Yes |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | Yes | Yes |
DICOM Run-Length Encoding
image/dicom-rle
Extension
.dcm.dicom
Container
DICOM (PS3.10)
Compression
Lossless (RLE)
Algorithm
Run-Length Encoding (RLE)
Color Depth
8-bit, 16-bit, 24-bit
Developed by
National Electrical Manufacturers Association (NEMA) / ACR
Released
1993
Magic Bytes
44 49 43 4D (at byte offset 128)
JPEG Stereo Image
image/x-jps
Extension
.jps
Container
JPEG (JFIF/Exif)
Compression
Lossy (JPEG/DCT)
Algorithm
JPEG (Discrete Cosine Transform)
Color Depth
8-bit (Grayscale), 24-bit (RGB)
Developed by
Stereoscopic Community (Unofficial Standard)
Released
1990
Magic Bytes
FF D8 FF
Browser Support Comparison
| Browser | DICOM-RLE | JPS |
|---|---|---|
|
|
✕ |
✓ 1
|
|
|
✕ |
✓ 1
|
|
|
✕ |
✓ 1
|
|
|
✕ |
✓ 12
|
|
|
✕ |
✓
|
DICOM-RLE
DICOM-RLE Strengths
- Guarantees lossless preservation of critical medical data necessary for diagnostics
- Extremely robust metadata structure containing patient information, modality, and spatial geometry
- Faster to encode and decode than complex compression schemes like JPEG 2000
Limitations
- RLE compression offers very low compression ratios compared to modern codecs like JPEG-LS or JPEG 2000
- Zero support in web browsers or standard consumer image viewers
- Strict data privacy regulations (HIPAA/GDPR) make handling DICOM files complex due to embedded PHI
JPS
JPS Strengths
- 100% backward compatible with every standard 2D image viewer and web browser (which simply display the two halves side-by-side)
- Inherits JPEG's excellent lossy compression, resulting in small file sizes ideal for web transmission
- Extremely easy to generate programmatically by simply stitching two JPEG images side-by-side onto a wider canvas
Limitations
- Lack of a dedicated metadata standard means viewing software has to guess whether the layout is 'cross-eyed' (right eye left, left eye right) or 'parallel' (left eye left, right eye right), occasionally causing inverted depth
- Suffers from JPEG compression artifacts, which can break the stereoscopic illusion if compression noise differs between the left and right eyes
- Superseded in consumer electronics by the MPO (Multi-Picture Object) format, which stacks separate full-resolution JPEGs rather than squishing them side-by-side
When to choose which format
DICOM-RLE
Use DICOM-RLE when…
- Medical Imaging
- Ultrasound
- X-Rays / CT / MRI
- PACS Archives
JPS
Use JPS when…
- Stereoscopic 3D Photography
- Virtual Reality (VR) Image Galleries
- Cross-eye / Parallel Stereograms