ComfyUI RAW Image Loader
A custom node extension for ComfyUI that enables loading and processing of RAW image files directly into your workflows.

Features
- Load RAW images from various camera manufacturers (Canon, Nikon, Sony, Fuji, etc.)
- Adjust brightness with automatic or manual controls
- Configure highlight handling with multiple modes
- Seamless integration with ComfyUI's image processing pipeline
Installation
Prerequisites
- ComfyUI installed and working
- Python 3.8+ environment
Install Steps
- Clone this repository into your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes/
git clone https://github.com/dimtion/comfyui-raw-loader.git
- Install the required dependencies:
pip install -r requirements.txt
- Restart ComfyUI
Usage
- Place your RAW image files in your ComfyUI input directory
- In the ComfyUI interface, add the "Load RAW image" node to your workflow
- Select your RAW file from the dropdown
- Configure the processing options:
- use_auto_bright: Enable/disable automatic brightness adjustment
- bright_adjustment: Fine-tune brightness (0.1-3.0)
- highlight_mode: Choose how to handle highlights in the image
- clip: Clip highlights to maximum value
- ignore: Preserve highlight values
- blend: Blend highlight areas
- reconstruct: Attempt to reconstruct highlight details
Supported File Formats
Supports all RAW formats handled by the rawpy library, including:
- Canon (CR2, CR3)
- Nikon (NEF)
- Sony (ARW)
- Fujifilm (RAF)
- And many more
License
MIT License
Acknowledgements
- rawpy for RAW image processing