ComfyUI Node: Tonemap

Class Name

Tonemap

Category
image/filters
Author
spacepxl (Account age: 295days)
Extension
ComfyUI-Image-Filters
Latest Updated
2024-06-22
Github Stars
0.08K

How to Install ComfyUI-Image-Filters

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

Tonemap Description

Convert HDR images to SDR format with adjustable tonemap scale for enhanced visual quality and color space options.

Tonemap:

The Tonemap node is designed to convert high dynamic range (HDR) images into a more visually appealing format by applying a tonemapping process. This process helps in compressing the range of luminance values in an image, making it suitable for display on standard dynamic range (SDR) devices. The node allows you to adjust the tonemap scale, which controls the intensity of the tonemapping effect, and provides options to specify the input and output color spaces. By using this node, you can enhance the visual quality of your images, ensuring that details in both the shadows and highlights are preserved and displayed correctly.

Tonemap Input Parameters:

images

This parameter accepts the image(s) that you want to apply the tonemapping process to. The input should be in the form of an image tensor.

input_mode

This parameter specifies the color space of the input image. You can choose between linear and sRGB. If your image is in the sRGB color space, the node will convert it to linear space before applying the tonemapping process. This ensures that the tonemapping is applied correctly.

output_mode

This parameter specifies the color space of the output image. You can choose between sRGB and linear. After the tonemapping process, the node will convert the image back to the specified color space. This allows you to control the final appearance of the image based on your display requirements.

tonemap_scale

This parameter controls the intensity of the tonemapping effect. It is a floating-point value with a default of 1, a minimum of 0.1, and a maximum of 10. Adjusting this value allows you to fine-tune the tonemapping process to achieve the desired visual effect. A higher value will result in a stronger tonemapping effect, while a lower value will produce a more subtle effect.

Tonemap Output Parameters:

IMAGE

The output of the Tonemap node is the tonemapped image. This image has been processed to compress the dynamic range, making it suitable for display on standard dynamic range (SDR) devices. The output image will be in the color space specified by the output_mode parameter.

Tonemap Usage Tips:

  • To achieve a natural-looking tonemapped image, start with the default tonemap_scale value of 1 and adjust incrementally.
  • If your input image is in sRGB color space, ensure that you set the input_mode to sRGB for accurate tonemapping.
  • Use the output_mode parameter to match the color space of your output image with the requirements of your display device or further processing pipeline.

Tonemap Common Errors and Solutions:

Image tensor is not in the correct format

  • Explanation: The input image tensor must be in a specific format for the tonemapping process to work correctly.
  • Solution: Ensure that your input image tensor is properly formatted and contains valid image data.

Invalid value for tonemap_scale

  • Explanation: The tonemap_scale parameter must be a floating-point value within the specified range (0.1 to 10).
  • Solution: Check the value of the tonemap_scale parameter and ensure it is within the valid range. Adjust the value if necessary.

Unsupported input_mode or output_mode

  • Explanation: The input_mode and output_mode parameters must be set to either linear or sRGB.
  • Solution: Verify that the values for input_mode and output_mode are correctly set to one of the supported options.

Tonemap Related Nodes

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