Documentation Index
Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
Use this file to discover all available pages before exploring further.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHubThe ColorTransfer node adjusts the color palette of a target image to match the colors of a reference image. It uses different mathematical algorithms to analyze and transfer the color characteristics, such as brightness, contrast, and hue distribution, from the reference to the target. This is useful for creating visual consistency across multiple images or applying a specific color grade.
Inputs
| Parameter | Data Type | Required | Range | Description |
|---|---|---|---|---|
image_target | IMAGE | Yes | - | Image(s) to apply the color transform to. |
image_ref | IMAGE | Yes | - | Reference image(s) to match colors to. |
method | COMBO | Yes | "reinhard_lab""mkl_lab""histogram" | The color transfer algorithm to use. |
source_stats | DYNAMICCOMBO | Yes | "per_frame""uniform""target_frame" | Determines how color statistics are calculated from the source (target) image(s). |
strength | FLOAT | Yes | 0.0 to 10.0 | The intensity of the color transfer effect. A value of 1.0 applies the full transform, while 0.0 returns the original image. Default: 1.0 |
source_statsOptions:per_frame: Each frame in a batch is matched to theimage_refindividually.uniform: Color statistics are pooled across all source frames to create a single baseline, which is then matched to theimage_ref.target_frame: Uses one chosen frame from the target batch as the baseline for computing the transform to theimage_ref. This transform is then applied uniformly to all frames, which preserves the relative color differences between them. When this option is selected, an additionaltarget_indexparameter becomes available.
target_index(appears whensource_statsis"target_frame"): The frame index (starting from 0) used as the source baseline for computing the transform. Default: 0. Must be between 0 and 10000.
- If
strengthis set to 0.0 orimage_refisNone, the node returns the originalimage_targetwithout processing. - When
source_statsis set to"target_frame", thetarget_indexmust be a valid index within the batch ofimage_target. If it exceeds the number of frames, the last frame is used. - For the
histogrammethod withsource_statsset to"per_frame", if the batch size ofimage_refis greater than 1, each target frame is matched to the corresponding reference frame by index. If the reference batch has only one frame, it is used for all target frames.
Outputs
| Output Name | Data Type | Description |
|---|---|---|
image | IMAGE | The resulting image(s) after the color transfer has been applied. |
Source fingerprint (SHA-256):
f844af34ac6129c7751953c48e2d12aa0d2c556937e610f649f3eb2725955711