Rotate(RotateStage)
RotateStage rotates an image by a fixed angle in degrees. It takes a ComfyTV image and an integer angle, and returns the rotated result as a COMFYTV_IMAGE.
Rotate Stage
Description
RotateStage rotates an image by a fixed angle in degrees. It takes a ComfyTV image and an integer angle, and returns the rotated result as a COMFYTV_IMAGE. The node is located in the ComfyTV/Image category.
Inputs
angle
- Type: INT
- Required: Yes
- Default: 0
- Range: -180 to 180
- Step: 1
The rotation angle in degrees. Positive values rotate the image clockwise; negative values rotate it counter-clockwise. The angle is a whole number, so rotation is limited to one-degree increments. A value of 0 leaves the image unrotated, and the extremes (-180 and 180) produce a half turn.
image
- Type: COMFYTV_IMAGE
- Required: No
The image to rotate. This input is optional, so the node can be added to a workflow before an image source is connected. Without a connected image there is no source to rotate.
Outputs
COMFYTV_IMAGE
A single image output containing the rotated result.
Usage Notes
- Positive angles rotate clockwise. Use negative values for counter-clockwise rotation.
- The range of -180 to 180 covers a half turn in each direction. Since -180 and 180 describe the same orientation, either value can be used for a 180 degree flip.
- The one-degree step means fractional angles are not supported.
- This node works on the
COMFYTV_IMAGEtype, which is distinct from the standard ComfyUIIMAGEtype. Make sure the upstream node you connect produces a matchingCOMFYTV_IMAGE. - With the default angle of 0, the image passes through unrotated, which is convenient when the node is used as a placeholder in a chain that you plan to adjust later.
Comments
Sign in with GitHub to join the discussion.