ComfyUI > Nodes > ComfyUI_ColorMod > ColorMod (move pivot)

ComfyUI Node: ColorMod (move pivot)

Class Name

ColorModPivot

Category
ColorMod
Author
city96 (Account age: 552days)
Extension
ComfyUI_ColorMod
Latest Updated
2024-08-06
Github Stars
0.07K

How to Install ComfyUI_ColorMod

Install this extension via the ComfyUI Manager by searching for ComfyUI_ColorMod
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_ColorMod in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ColorMod (move pivot) Description

Adjust color distribution by modifying pivot point for controlled contrast and brightness alterations, achieving various visual effects.

ColorMod (move pivot):

The ColorModPivot node is designed to adjust the color distribution of an image by modifying the pivot point around which colors are redistributed. This node allows you to shift the color values in an image, effectively altering the contrast and brightness in a controlled manner. By adjusting the pivot and move parameters, you can achieve a variety of visual effects, from subtle enhancements to dramatic changes. This node is particularly useful for fine-tuning the tonal balance of an image, ensuring that specific color ranges are emphasized or subdued according to your artistic vision.

ColorMod (move pivot) Input Parameters:

image

This parameter represents the input image that you want to modify. The image should be in a format compatible with the node, typically a tensor representing pixel values.

pivot

The pivot parameter sets the reference point around which the color values are redistributed. It determines the threshold that separates the lower and higher color values. The default value is 0.5, with a minimum of 0.001 and a maximum of 0.999. Adjusting this value allows you to control the balance between dark and light areas in the image.

move

The move parameter specifies the amount by which the pivot point is shifted. This value can range from -2.000 to 2.000, with a default of 0.0. Positive values will increase the brightness, while negative values will decrease it. This parameter helps in fine-tuning the overall brightness and contrast of the image.

clip

The clip parameter is a boolean option that determines whether the output values should be clipped to the range [0.0, 1.0]. The default value is True. When clipping is enabled, any values outside this range will be constrained, ensuring that the image remains within the standard color range.

ColorMod (move pivot) Output Parameters:

image

The output is the modified image with adjusted color values based on the specified pivot and move parameters. This image will have its color distribution altered, providing a new tonal balance that reflects the adjustments made. The output image can be used directly in your workflow or further processed with additional nodes.

ColorMod (move pivot) Usage Tips:

  • Experiment with different pivot values to find the optimal balance between dark and light areas in your image.
  • Use the move parameter to fine-tune the brightness and contrast, making subtle adjustments to achieve the desired effect.
  • Enable clipping to ensure that the output image remains within the standard color range, preventing any unintended color distortions.

ColorMod (move pivot) Common Errors and Solutions:

ValueError: Unknown mode 'mode'

  • Explanation: This error occurs if an invalid mode is passed to the node.
  • Solution: Ensure that the mode parameter is set to a valid value, such as "clip", "normalize", or "compress".

AssertionError: Color conversion failed! Missing cv2 op 'COLOR_src2dst'

  • Explanation: This error indicates that the specified color conversion operation is not available in the installed version of OpenCV.
  • Solution: Verify that the source and destination color spaces are supported by your version of OpenCV and that the correct conversion operation is specified.

ColorMod (move pivot) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_ColorMod
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.