ComfyUI > Nodes > ComfyUI-YCNodes > Image Rotate

ComfyUI Node: Image Rotate

Class Name

ImageRotate

Category
YCNode/Image
Author
yichengup (Account age: 473days)
Extension
ComfyUI-YCNodes
Latest Updated
2025-06-03
Github Stars
0.02K

How to Install ComfyUI-YCNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-YCNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-YCNodes 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Rotate Description

Rotate images by specific angles for AI artists, offering quick and efficient transformations without complex software.

Image Rotate:

The ImageRotate node is designed to facilitate the rotation of images by specific angles, providing a straightforward method to adjust the orientation of your images. This node is particularly useful for AI artists who need to manipulate image orientation for creative effects or to meet specific design requirements. By offering the ability to rotate images by 90, 180, or 270 degrees, the node allows for quick and efficient transformations without the need for complex image editing software. This functionality is essential for tasks that require precise control over image orientation, such as preparing images for layout designs or creating dynamic visual effects.

Image Rotate Input Parameters:

image

The image parameter is the primary input for the ImageRotate node, and it expects an image in the form of a torch.Tensor. This parameter represents the image that you wish to rotate. It is crucial that the input is in the correct format, as the node relies on this to perform the rotation operation accurately. The image should be pre-processed and ready for transformation, ensuring that it is compatible with the node's requirements.

angle

The angle parameter determines the degree of rotation to be applied to the image. It offers three options: "90", "180", and "270", which correspond to rotating the image clockwise by 90 degrees, 180 degrees, and 270 degrees, respectively. This parameter allows you to select the desired rotation angle, enabling you to achieve the specific orientation needed for your project. The choice of angle directly impacts the final appearance of the image, making it a critical component of the node's functionality.

Image Rotate Output Parameters:

IMAGE

The output of the ImageRotate node is an IMAGE, which is the rotated version of the input image. This output retains the same data type as the input, ensuring consistency and compatibility with subsequent processing steps. The rotated image reflects the transformation specified by the angle parameter, providing you with a new image orientation that can be used in various creative and design applications.

Image Rotate Usage Tips:

  • Ensure that your input image is in the correct torch.Tensor format to avoid errors during processing.
  • Use the angle parameter to experiment with different orientations and find the one that best suits your creative vision.
  • Consider the final application of the rotated image to choose the most appropriate angle, whether for aesthetic purposes or to fit specific layout requirements.

Image Rotate Common Errors and Solutions:

"输入必须是torch.Tensor类型"

  • Explanation: This error occurs when the input image is not provided in the expected torch.Tensor format.
  • Solution: Convert your image to a torch.Tensor before passing it to the node to ensure compatibility.

"Invalid angle option"

  • Explanation: This error arises when an angle other than "90", "180", or "270" is provided.
  • Solution: Ensure that the angle parameter is set to one of the valid options: "90", "180", or "270".

Image Rotate Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-YCNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.