ComfyUI Node
CV Transform (Rotate/Scale/Shift)
Rotates around the center, scales, shifts and/or flips the image in one step (cv2.warpAffine under the hood).
CV Transform (Rotate/Scale/Shift)
- image
- IMAGE
◄angle0.0►
◄zoom1.00►
◄shift_x0.00►
◄shift_y0.00►
◄flipnone►
◄interpolationINTER_LINEAR►
◄borderBORDER_CONSTANT►
Categoryimage/CV
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image. A batch is processed frame by frame. | |
| angle | FLOAT | 0.0-3600–3600 | Rotation in degrees, counter-clockwise. |
| zoom | FLOAT | 1.000.01–16 | Uniform scale around the center. 1.0 = no change. |
| shift_x | FLOAT | 0.00-16384–16384 | Horizontal shift in pixels. |
| shift_y | FLOAT | 0.00-16384–16384 | Vertical shift in pixels. |
| flip | COMBO | none | Optional mirror applied before rotate/scale: horizontal, vertical, or both. |
| interpolation | COMBO | INTER_LINEAR | Resampling filter for the warp. NEAREST keeps hard edges; LINEAR/CUBIC are smoother for photos. |
| border | COMBO | BORDER_CONSTANT | What to fill the uncovered areas with (CONSTANT = black). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |