ComfyUI  >  Nodes  >  ComfyUI-post-processing-nodes >  DodgeAndBurn

ComfyUI Node: DodgeAndBurn

Class Name

DodgeAndBurn

Category
postprocessing/Blends
Author
EllangoK (Account age: 2833 days)
Extension
ComfyUI-post-processing-nodes
Latest Updated
8/9/2024
Github Stars
0.2K

How to Install ComfyUI-post-processing-nodes

Install this extension via the ComfyUI Manager by searching for  ComfyUI-post-processing-nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-post-processing-nodes 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

DodgeAndBurn Description

Enhance images with selective lightening/darkening using DodgeAndBurn node for artistic effects and customization.

DodgeAndBurn:

The DodgeAndBurn node is a powerful post-processing tool designed to enhance your images by selectively lightening or darkening specific areas. This technique, known as dodging and burning, is widely used in photography and digital art to add depth, contrast, and emphasis to certain parts of an image. By applying different modes such as dodge, burn, color dodge, color burn, linear dodge, and linear burn, you can achieve a variety of artistic effects. The node allows you to control the intensity of these effects, providing a high degree of customization to suit your creative needs. Whether you want to highlight details, create dramatic lighting, or subtly adjust tones, the DodgeAndBurn node offers a versatile solution for refining your images.

DodgeAndBurn Input Parameters:

image

This parameter represents the input image that you want to process. It is the primary canvas on which the dodging and burning effects will be applied.

mask

The mask parameter is an image that defines the areas where the dodge or burn effect will be applied. The intensity of the effect is modulated by the values in the mask, with higher values indicating stronger effects.

intensity

The intensity parameter controls the strength of the dodge or burn effect. It is a float value ranging from 0.0 to 1.0, with a default value of 0.5. A higher intensity will result in a more pronounced effect, while a lower intensity will produce a subtler change.

mode

The mode parameter specifies the type of effect to apply. It can take one of the following values: "dodge", "burn", "dodge_and_burn", "burn_and_dodge", "color_dodge", "color_burn", "linear_dodge", "linear_burn". Each mode offers a different method of modifying the image, allowing for a wide range of creative possibilities.

DodgeAndBurn Output Parameters:

IMAGE

The output is the processed image with the applied dodge and burn effects. This image reflects the adjustments made based on the input parameters, showcasing enhanced contrast, depth, and emphasis as per the selected mode and intensity.

DodgeAndBurn Usage Tips:

  • Experiment with different modes to see how each one affects your image. For example, "color_dodge" can create vibrant highlights, while "linear_burn" can add deep shadows.
  • Use a mask to target specific areas of your image for dodging and burning. This allows for precise control over which parts of the image are affected.
  • Adjust the intensity parameter to fine-tune the strength of the effect. Start with a lower intensity and gradually increase it to achieve the desired look.
  • Combine multiple modes in sequence, such as "dodge_and_burn" or "burn_and_dodge", to create complex lighting effects and enhance the overall composition of your image.

DodgeAndBurn Common Errors and Solutions:

Unsupported dodge and burn mode: <mode>

  • Explanation: This error occurs when an invalid mode is specified in the mode parameter.
  • Solution: Ensure that the mode parameter is set to one of the supported values: "dodge", "burn", "dodge_and_burn", "burn_and_dodge", "color_dodge", "color_burn", "linear_dodge", "linear_burn".

Division by zero error

  • Explanation: This error can occur if the mask values lead to a division by zero during the dodge or burn calculations.
  • Solution: Ensure that the mask values are within a valid range and do not cause division by zero. Adding a small epsilon value (1e-7) to the denominator can help prevent this issue.

Image and mask dimension mismatch

  • Explanation: This error occurs when the dimensions of the input image and mask do not match.
  • Solution: Make sure that the input image and mask have the same dimensions before applying the dodge and burn effects. Resize the mask if necessary to match the image dimensions.

DodgeAndBurn Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-post-processing-nodes
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.