"Rotate" is the word people actually search for, and almost nothing in
the ecosystem registers under that name, so keeping it in the display
name is worth more than a tidier one. The node menu now shows
"Transform & Rotate Pro", and the class is TransformRotatePro to match.
The registration key stays MP_ImageTransform on purpose. That key is
what saved workflows and placed nodes reference, so changing it again
would break any node already dropped on a canvas. The key is never
shown in the UI, so there is no cost to leaving it as it is - a comment
in __init__.py records why it differs from the class name.
Category is unchanged at MachinePaintingNodes/Rotate & Scale. README
updated throughout.
offset_y was following the raw pixel convention where Y grows downward,
so dragging the slider right pushed the image down. Negated it in
build_matrix so both placement sliders now read the same way: drag
right for right/up, drag left for left/down.
One edit covers both nodes, since Image Transform Pro and Remove
Background Pro share build_matrix.
This is the opposite sign to Photoshop's transform Y field, which is a
deliberate choice: on a centre-zero slider "more" reading as "up" is
more intuitive than matching pixel coordinates.
Category is now "MachinePaintingNodes/Rotate & Scale" - a single
subcategory using "&" rather than "/", which ComfyUI would have split
into nested submenus. Keeps the node one level deep like the rest of
the pack. README heading updated to match.
The node does rotate, scale, move, canvas resize, mask cut-out and
background fill, so "rotate" undersold it. "Transform" is the standard
term for rotate + scale + translate, matches the existing
MachinePaintingNodes/Transform category, matches the pack's "... Pro"
convention, and leaves room for flip / skew / corner-pin later.
image_rotate.py -> image_transform.py
class ImageRotate -> ImageTransformPro
MP_ImageRotate -> MP_ImageTransform
display name -> Image Transform Pro
Also adds a DESCRIPTION attribute. ComfyUI reads DESCRIPTION rather
than the docstring for the node tooltip and indexes it for node search,
so the node is still found by typing "rotate", "scale" or "move" even
though those words are no longer in its name.
Free to rename: the node has never shipped in a release, so no saved
workflow refers to the old key.
Image Rotate (new node): rotate, zoom and reposition an image inside a
definable canvas. Free or fixed (45 degree snap) rotation, centre-zero
angle slider (CCW left, CW right), exponential centre-zero zoom
(-100 = 0.25x, +100 = 4x), percent-based XY placement, and
transparent/black/white background fill. An optional mask input rides
the identical matrix so it stays registered to the image. Canvas W/H
inputs default to 0, meaning "match the incoming image".
Remove Background Pro: rotation block added at the bottom of the
settings (enable toggle, free/fixed method, angle slider, XY
placement). Applied after removal so rembg always segments the upright
image; the canvas stays at the original size and image, mask,
masked_image, mask_bw and passthrough are all warped by the same
matrix.
New transform_utils module keeps the rotate/zoom/offset math identical
across both nodes. js/image_transform.js snaps the angle slider to 45
degree steps in fixed mode and hides the rotation widgets until the
toggle is on; Python snaps too, so the result is correct regardless of
frontend version.