Visit ComfyUI Online for ready-to-use ComfyUI environment
Comprehensive image manipulation tool for AI artists, offering cropping, rotating, mirroring, resizing, and color adjustments.
The ImageTool
node is designed to provide a comprehensive suite of image manipulation capabilities, allowing you to perform various transformations on your images with ease. This node is particularly useful for AI artists who need to preprocess or adjust images before feeding them into their models. The ImageTool
can handle operations such as cropping, rotating, mirroring, flipping, and resizing images, as well as adjusting the background color. By using this node, you can ensure that your images are in the desired format and dimensions, which can significantly enhance the quality and consistency of your AI-generated artwork.
This parameter represents the input image that you want to manipulate. The image should be in a format that can be processed by the node, typically a tensor representation of the image.
This parameter specifies the desired height of the output image. If cropping is enabled, it determines the height of the cropped area. If cropping is disabled, it sets the height for resizing. The value should be an integer, with a minimum value of 1.
This parameter specifies the desired width of the output image. Similar to the height parameter, it determines the width of the cropped area if cropping is enabled, or the width for resizing if cropping is disabled. The value should be an integer, with a minimum value of 1.
This boolean parameter determines whether the image should be cropped to the specified width and height. If set to True
, the image will be cropped; if set to False
, the image will be resized instead.
This parameter specifies the angle in degrees by which the image should be rotated. Positive values rotate the image clockwise, while negative values rotate it counterclockwise. The rotation is performed around the center of the image.
This boolean parameter determines whether the image should be mirrored horizontally. If set to True
, the image will be mirrored; if set to False
, it will remain unchanged.
This boolean parameter determines whether the image should be flipped vertically. If set to True
, the image will be flipped; if set to False
, it will remain unchanged.
This parameter specifies the background color to be used when rotating the image. It is particularly useful for filling in the areas that become exposed after rotation. The color should be provided in a format that can be interpreted by the image processing library, typically an RGB tuple.
The output parameter is the transformed image, which has undergone the specified manipulations such as cropping, rotating, mirroring, flipping, and resizing. The output image is returned as a tensor, ready for further processing or use in your AI models.
© Copyright 2024 RunComfy. All Rights Reserved.