ComfyUI > Nodes > ComfyUI-MagickWand > ImageMagick Linear Stretch

ComfyUI Node: ImageMagick Linear Stretch

Class Name

ImageMagick Linear Stretch

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 Linear Stretch Description

Enhances image contrast by stretching pixel value range for vibrant, detailed visuals.

ImageMagick Linear Stretch:

The ImageMagick Linear Stretch node is designed to enhance the contrast of an image by stretching the range of pixel values. This process involves adjusting the black and white points of the image, effectively redistributing the pixel values to utilize the full dynamic range. By doing so, it can bring out details in both the shadows and highlights, making the image appear more vibrant and well-defined. This node is particularly useful for images that appear flat or lack contrast, as it can significantly improve their visual appeal without altering the overall composition.

ImageMagick Linear Stretch Input Parameters:

image

This parameter represents the input image that you want to process. It accepts an image file in a compatible format.

black_point

The black_point parameter sets the lower threshold for the pixel values. Pixels with values below this threshold will be mapped to the minimum value (black). This helps in enhancing the darker areas of the image. The value ranges from 0.0 to 1024, with a default value of 0.0. Adjusting this value can help in bringing out details in the shadow regions.

white_point

The white_point parameter sets the upper threshold for the pixel values. Pixels with values above this threshold will be mapped to the maximum value (white). This helps in enhancing the brighter areas of the image. The value ranges from 0.0 to 1024, with a default value of 1.0. Adjusting this value can help in bringing out details in the highlight regions.

ImageMagick Linear Stretch Output Parameters:

image

The output is the processed image with enhanced contrast. The pixel values are redistributed to utilize the full dynamic range, resulting in a more vibrant and well-defined image. This output can be used for further processing or as a final result.

ImageMagick Linear Stretch Usage Tips:

  • Experiment with the black_point and white_point values to find the optimal settings for your specific image. Small adjustments can make a significant difference in the final result.
  • Use this node on images that appear flat or lack contrast to bring out hidden details and improve their visual appeal.
  • Combine the Linear Stretch node with other enhancement nodes like Brightness Contrast or Auto Level for even better results.

ImageMagick Linear Stretch Common Errors and Solutions:

Image format not supported

  • Explanation: The input image format is not supported by the node.
  • Solution: Ensure that the input image is in a compatible format such as JPEG, PNG, or TIFF.

Invalid black_point or white_point value

  • Explanation: The values provided for black_point or white_point are outside the acceptable range.
  • Solution: Ensure that the black_point and white_point values are within the range of 0.0 to 1024.

Image processing failed

  • Explanation: An error occurred during the image processing.
  • Solution: Check the input image and parameter values for any inconsistencies. If the problem persists, try using a different image or adjusting the parameter values.

ImageMagick Linear Stretch 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.