Visit ComfyUI Online for ready-to-use ComfyUI environment
Image transformation node with comprehensive capabilities for precise adjustments and artistic effects.
The LayerUtility: LayerImageTransform
node is designed to provide a comprehensive set of image transformation capabilities, allowing you to manipulate images with precision and flexibility. This node is particularly useful for AI artists who need to adjust images in various ways, such as scaling, rotating, mirroring, and more. By leveraging this node, you can apply complex transformations to your images, ensuring they meet your creative vision. The node supports multiple transformation methods and anti-aliasing options, making it a versatile tool for enhancing image quality and achieving the desired artistic effects.
This parameter accepts the image you want to transform. It is a required input and should be provided in the appropriate image format.
This integer parameter specifies the horizontal translation of the image. The default value is 0, with a minimum of -99999 and a maximum of 99999. Adjusting this value will move the image left or right.
This integer parameter specifies the vertical translation of the image. The default value is 0, with a minimum of -99999 and a maximum of 99999. Adjusting this value will move the image up or down.
This parameter allows you to apply a mirroring effect to the image. The available options are None
, horizontal
, and vertical
. Selecting horizontal
will flip the image left to right, while vertical
will flip it top to bottom.
This float parameter controls the scaling factor of the image. The default value is 1, with a minimum of 0.01 and a maximum of 100. Adjusting this value will resize the image proportionally.
This float parameter adjusts the aspect ratio of the image. The default value is 1, with a minimum of 0.01 and a maximum of 100. Changing this value will stretch or compress the image along one axis.
This float parameter specifies the rotation angle of the image in degrees. The default value is 0, with a minimum of -999999 and a maximum of 999999. Positive values rotate the image clockwise, while negative values rotate it counterclockwise.
This parameter defines the interpolation method used for transformations. The available options are lanczos
, bicubic
, hamming
, bilinear
, box
, and nearest
. Each method offers different levels of quality and performance, with lanczos
providing the highest quality and nearest
being the fastest.
This integer parameter sets the level of anti-aliasing applied to the image. The default value is 2, with a minimum of 0 and a maximum of 16. Higher values result in smoother edges but may increase processing time.
The output parameter is the transformed image. This image reflects all the applied transformations, such as translation, scaling, rotation, mirroring, and interpolation. The output is in the same format as the input image, ensuring compatibility with subsequent nodes or processes.
lanczos
transform method, especially for significant enlargements.anti_aliasing
parameter to smooth out edges, especially when performing rotations or scaling down images.transform_method
parameter is set to one of the following: lanczos
, bicubic
, hamming
, bilinear
, box
, or nearest
.© Copyright 2024 RunComfy. All Rights Reserved.