Visit ComfyUI Online for ready-to-use ComfyUI environment
Rotate images by specified angle with advanced techniques for high-quality results and image clarity.
The ImageTransformRotate
node is designed to rotate images by a specified angle, providing a flexible and efficient way to manipulate image orientation. This node is particularly useful for AI artists who need to adjust the alignment of their images for various creative purposes. By leveraging advanced rotation techniques, the node ensures high-quality results, even when dealing with complex transformations. The node supports different interpolation methods to maintain image clarity and can handle super-sampling anti-aliasing (SSAA) to further enhance the visual quality of the rotated images. Whether you need to make slight adjustments or perform full 360-degree rotations, ImageTransformRotate
offers a robust solution to meet your artistic needs.
This parameter represents the input images that you want to rotate. It accepts a batch of images in tensor format. The images are processed individually, and the rotation is applied to each image in the batch.
The angle
parameter specifies the degree of rotation to be applied to the images. It accepts a floating-point value representing the angle in degrees. Valid values range from 0 to 360, with 0 and 360 resulting in no rotation. For example, an angle of 90 will rotate the image 90 degrees clockwise.
The expand
parameter determines whether the output image should be resized to accommodate the entire rotated image. It accepts a boolean value (true
or false
). When set to true
, the output image will be expanded to ensure no part of the rotated image is cut off. When set to false
, the image dimensions remain the same, and parts of the image may be cropped.
The SSAA
(Super-Sampling Anti-Aliasing) parameter controls the level of anti-aliasing applied during the rotation. It accepts an integer value greater than or equal to 1. Higher values result in better image quality by reducing aliasing artifacts but may increase processing time. A value of 1 disables SSAA.
The method
parameter specifies the interpolation method used for resizing and rotating the images. It accepts one of the following options: lanczos
, bicubic
, hamming
, bilinear
, box
, or nearest
. Each method offers a different balance between quality and performance, with lanczos
providing the highest quality and nearest
being the fastest but lowest quality.
The output is a batch of rotated images in tensor format. Each image in the batch is rotated according to the specified angle and processed with the chosen interpolation method and SSAA settings. The output images maintain high visual quality and are ready for further processing or display.
lanczos
or bicubic
interpolation methods, especially when working with high-resolution images.expand
parameter to true
.SSAA
value to reduce aliasing artifacts, particularly when rotating images by non-right angles.method
parameter.method
parameter is set to one of the following valid options: lanczos
, bicubic
, hamming
, bilinear
, box
, or nearest
.SSAA
parameter is set to a value less than 1. - Solution: Set the SSAA
parameter to an integer value of 1 or higher to enable proper anti-aliasing.angle
parameter is set to a value outside the valid range of 0 to 360 degrees.angle
parameter is set to a value within the range of 0 to 360 degrees.© Copyright 2024 RunComfy. All Rights Reserved.