A macOS QuickLook extension for previewing DICOM (Digital Imaging and Communications in Medicine) files directly in Finder. This application uses Rust for fast and efficient DICOM parsing, displaying the DICOM attributes in a well-formatted table and a preview image if the file contains PixelData. This tool is meant to assist with introspecting DICOM files on disk for engineering and R&D usage.
The images reproduced in the preview may not render like they would in software conforming to the full DICOM specification!
- 🔍 Quick preview of DICOM files using spacebar in Finder
- 📊 View all DICOM attributes in a clean, organized table format
- ⚡️ Fast performance with Rust-based parsing via dicom-rs
- 🎯 Support for standard DICOM file formats
- 🔒 Privacy-focused: all processing done locally on your machine
- macOS 14.0 or later
- Xcode 14.0 or later (for development)
- Rust toolchain (for development)
- Download the latest release from the Releases page
- Move DicomPreview.app to your Applications folder
- Double-click to open (you may need to right-click and select "Open" the first time due to macOS security)
- The QuickLook extension will be automatically registered
-
Clone the repository:
git clone https://github.com/neuralinkcorp/DicomPreview.git cd DicomPreview
-
Install Rust if you haven't already:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Build the project:
# Build the Rust library ./build_rust_library.sh # Build the Xcode project xcodebuild -project DicomPreview.xcodeproj -scheme DicomPreview -configuration Release
-
The built application will be in
build/Release/DicomPreview.app
- Install the application as described above
- In Finder, select any DICOM file (common extensions: .dcm, .dicom, .dic)
- Press spacebar to activate QuickLook
- The preview will show a table with:
- Tag ID
- Element Name
- Value Representation (VR)
- Element Value
DicomPreview/
├── DicomPreview/ # Main application code
├── DicomPreviewExtension/ # QuickLook extension
├── dicom-parser/ # Rust DICOM parsing library
│ ├── src/ # Rust source code
│ └── Cargo.toml # Rust dependencies
└── build_rust_library.sh # Build script for Rust library
See CONTRIBUTING.md for detailed information on how to contribute to this project, including development setup, pre-commit hooks, and workflow guidelines.
- Preview not showing: Make sure the extension is enabled in System Preferences → Extensions → Quick Look
- Build errors: Ensure you have the latest Xcode and Rust toolchain installed
- Performance issues: Please report them with the DICOM file size and specifications
The QuickLook Cache can be flushed with:
# Reset thumbnail disk cache
qlmanage -r cache
# Open QuickLook for a specific file
qlmanage -p $FILE
Check System Information > Software > Applications
to see which apps are registered.
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
- dicom-rs - Rust DICOM parsing library
For support, please:
- Search existing Issues
- Open a new issue if needed