ComfyUI  >  Nodes  >  Allor Plugin >  ImageTransformRotate

ComfyUI Node: ImageTransformRotate

Class Name

ImageTransformRotate

Category
image/transform
Author
Nourepide (Account age: 2900 days)
Extension
Allor Plugin
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Allor Plugin

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

ImageTransformRotate Description

Rotate images by specified angle with advanced techniques for high-quality results and image clarity.

ImageTransformRotate:

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.

ImageTransformRotate Input Parameters:

images

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.

angle

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.

expand

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.

SSAA

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.

method

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.

ImageTransformRotate Output Parameters:

IMAGE

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.

ImageTransformRotate Usage Tips:

  • For the best visual quality, use the lanczos or bicubic interpolation methods, especially when working with high-resolution images.
  • If you need to ensure that no part of the rotated image is cropped, set the expand parameter to true.
  • Use a higher SSAA value to reduce aliasing artifacts, particularly when rotating images by non-right angles.
  • Experiment with different angles to achieve the desired artistic effect, keeping in mind that small adjustments can significantly impact the composition.

ImageTransformRotate Common Errors and Solutions:

ValueError: Invalid interpolation method

  • Explanation: This error occurs when an unsupported interpolation method is specified in the method parameter.
  • Solution: Ensure that the method parameter is set to one of the following valid options: lanczos, bicubic, hamming, bilinear, box, or nearest.

RuntimeError: Image tensor dimensions mismatch

  • Explanation: This error can happen if the input images do not have consistent dimensions or are not in the expected tensor format.
  • Solution: Verify that all input images are correctly formatted and have the same dimensions before passing them to the node.

ValueError: SSAA value must be >= 1

  • Explanation: This error occurs when the 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.

ValueError: Angle must be between 0 and 360

  • Explanation: This error occurs when the angle parameter is set to a value outside the valid range of 0 to 360 degrees.
  • Solution: Ensure that the angle parameter is set to a value within the range of 0 to 360 degrees.

ImageTransformRotate Related Nodes

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