Free webp to jpg
Image MIME Reference
MODI

Microsoft Document Imaging

image/vnd.ms-modi
VS

Sony SR2 Raw Image

image/x-sony-sr2
Sony-SR2

A complete technical comparison of Microsoft Document Imaging and Sony SR2 Raw Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature MODI Sony-SR2
Transparency (Alpha) ✕ No ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No Yes
EXIF Metadata ✕ No Yes
ICC Color Profile ✕ No Yes
Microsoft Document Imaging
image/vnd.ms-modi
Extension
.mdi
Container TIFF Variant
Compression LZW / Proprietary MS Compression
Algorithm
LZW (Modified)
Color Depth 1-bit (Monochrome), 8-bit (Grayscale), 24-bit (RGB)
Developed by Microsoft Corporation
Released 2001
Magic Bytes
49 49 2A 00
Full MODI reference →
Sony SR2 Raw Image
image/x-sony-sr2
Extension
.sr2
Container TIFF-based (Proprietary)
Compression Uncompressed / Sony Proprietary Lossless
Algorithm
NoneSony Proprietary Lossless
Color Depth 12-bit (Per Channel)
Developed by Sony Corporation
Released 2005
Magic Bytes
49 49 2A 00
Full Sony-SR2 reference →

Browser Support Comparison

Browser MODI Sony-SR2
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
MODI

MODI Strengths

  • Historically provided an excellent all-in-one scanned document format with built-in OCR and annotations before PDF editing became universally accessible
  • Tightly integrated with Microsoft Office and SharePoint workflows in the early 2000s
Limitations
  • Completely proprietary and obsolete; Microsoft abandoned it in favor of standard TIFF and PDF
  • Causes widespread identification conflicts since its file signature is identical to a standard TIFF
  • Extremely difficult to open on modern operating systems without relying on third-party conversion utilities
Sony-SR2

Sony-SR2 Strengths

  • Retains raw, unprocessed sensor data from legacy cameras, allowing modern raw processors to extract vastly superior image quality than what was possible in 2005
  • Utilizes a standard TIFF container structure, ensuring that community-maintained open-source decoding libraries (like LibRaw) can easily parse and maintain support for it indefinitely
Limitations
  • Completely obsolete format that has not been utilized in a new camera release in over a decade
  • MIME detection via magic bytes is unreliable due to TIFF header spoofing, requiring deeper EXIF inspection
  • Cannot be natively viewed in web browsers or standard operating system image viewers without specialized decoders

When to choose which format

MODI
Use MODI when…
  • Legacy Scanned Document Archival
  • Microsoft Office XP/2003/2007 Workflows
  • Embedded OCR Text Storage
Sony-SR2
Use Sony-SR2 when…
  • Legacy Sony Cyber-shot/Alpha Photography
  • Non-destructive Image Post-Processing
  • Raw Imaging Archival
Share this comparison