Skip to content

Repository files navigation

ComfyUI RAW Image Loader

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

Screenshot of the tool

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

  1. Clone this repository into your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes/
git clone https://github.com/dimtion/comfyui-raw-image.git
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Restart ComfyUI

Usage

  1. Place your RAW image files in your ComfyUI input directory
  2. In the ComfyUI interface, add the "Load RAW image" node to your workflow
  3. Select your RAW file from the dropdown
  4. 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

About

Extension for ComfyUI to load and process RAW image files

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Contributors

Languages