ComfyUI > Nodes > ComfyUI-MagickWand > ImageMagick Levelize

ComfyUI Node: ImageMagick Levelize

Class Name

ImageMagick Levelize

Category
MagickWand/Enhance
Author
Fannovel16 (Account age: 3129days)
Extension
ComfyUI-MagickWand
Latest Updated
2024-06-20
Github Stars
0.07K

How to Install ComfyUI-MagickWand

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

ImageMagick Levelize Description

Enhance image contrast and brightness by adjusting black, white, and gamma levels for improved visual quality.

ImageMagick Levelize:

The ImageMagick Levelize node is designed to enhance the contrast and brightness of an image by adjusting the black, white, and gamma levels. This node allows you to fine-tune the tonal range of an image, making it possible to bring out details in both the shadows and highlights. By specifying the black and white points, you can control the darkest and brightest parts of the image, respectively, while the gamma adjustment lets you modify the midtones. This node is particularly useful for correcting exposure issues and improving the overall visual quality of your images.

ImageMagick Levelize Input Parameters:

image

This parameter accepts the image you want to process. The image should be in a compatible format that the node can handle.

black

This parameter sets the black point of the image, which determines the darkest part of the image. Adjusting this value can help in enhancing shadow details. The value ranges from 0.0 to 1024, with a default of 0.0.

white

This parameter sets the white point of the image, which determines the brightest part of the image. Adjusting this value can help in enhancing highlight details. The value ranges from 0.0 to 1024, with a default of 0.0.

gamma

This parameter adjusts the gamma level of the image, which affects the midtones. A gamma value of 1.0 means no change, while values less than 1.0 darken the midtones and values greater than 1.0 lighten them. The value ranges from 0.0 to 1024, with a default of 1.0.

channel

This parameter specifies the color channel to which the level adjustments will be applied. Options include undefined, red, gray, cyan, green, magenta, blue, yellow, black, alpha, opacity, index, readmask, write_mask, meta, composite_channels, all_channels, true_alpha, rgb, rgb_channels, gray_channels, sync_channels, and default_channels. The default is red.

ImageMagick Levelize Output Parameters:

IMAGE

The output is the processed image with the applied level adjustments. This image will have enhanced contrast and brightness based on the specified black, white, and gamma values.

ImageMagick Levelize Usage Tips:

  • To enhance shadow details, increase the black value slightly while keeping an eye on the overall image contrast.
  • For better highlight details, adjust the white value to a higher setting, but avoid overexposure.
  • Use the gamma parameter to fine-tune the midtones, especially if the image appears too dark or too light after adjusting the black and white points.
  • Experiment with different channel settings to apply adjustments to specific color channels for more targeted enhancements.

ImageMagick Levelize Common Errors and Solutions:

ValueError: Invalid image format

  • Explanation: This error occurs when the input image is in an unsupported format.
  • Solution: Ensure that the input image is in a compatible format such as JPEG, PNG, or TIFF.

TypeError: Expected float for black/white/gamma

  • Explanation: This error occurs when the black, white, or gamma parameters are not provided as floating-point numbers.
  • Solution: Make sure to input valid floating-point numbers for the black, white, and gamma parameters.

ValueError: Channel not recognized

  • Explanation: This error occurs when an invalid channel name is provided.
  • Solution: Ensure that the channel parameter is set to one of the recognized options such as red, green, blue, etc.

ImageMagick Levelize Related Nodes

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