Skip to content

DICOM preview support #1866

@User-3090

Description

@User-3090

QuickLook currently does not support DICOM files. Adding basic preview support for medical images would be useful for users working with radiology and clinical datasets.

Technical notes:

  • DICOM is a container format (ISO 12052) that wraps pixel data plus metadata.

  • Common transfer syntaxes / encodings used in practice:

    • Uncompressed: Implicit VR Little Endian, Explicit VR Little Endian
    • JPEG Baseline (lossy, 8-bit)
    • JPEG Extended
    • JPEG Lossless
    • JPEG-LS (lossy and lossless)
    • JPEG 2000 (lossy and lossless)
  • Pixel data may be monochrome (MONOCHROME1/2) or RGB.

  • Window level (VOI LUT) handling is required for grayscale images to render correctly.

  • Multi-frame DICOMs exist; a reasonable first step could be previewing the first frame only.

Implementation approach:

  • Use an existing DICOM parsing library (e.g. DCMTK, GDCM, or fo-dicom) to read metadata and extract pixel data.
  • Decode JPEG/JPEG 2000 using existing decoders (libjpeg, libjpeg-turbo, OpenJPEG).
  • Render a single frame to a bitmap for preview; ignore advanced features initially (overlays, annotations, multi-series).
  • No need for full diagnostic accuracy; preview-only rendering is sufficient.

Scope could be limited to:

  • Single-image DICOM files
  • JPEG / JPEG 2000 / uncompressed transfer syntaxes
  • First-frame preview only

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions