Studio Yotsuba
Back to Node List

Free Transform

free_transform

Scale (fractional, negative mirrors), rotate by any angle and skew in one pass. RotSprite quality keeps palette colors while smoothing edges

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Input image

Output Ports

NameTypeDescription
Image
output
Image
Transformed image

Parameters

NameTypeDefaultRangeDescription / Options
Scale X
scale_x
Float
1-16–16 / step 0.01

Horizontal scale factor. Negative values mirror horizontally

Scale Y
scale_y
Float
1-16–16 / step 0.01

Vertical scale factor. Negative values mirror vertically

Rotation
rotation
Angle
0— / step 1

Clockwise rotation angle in degrees

Skew X
skew_x
Float
0-85–85 / step 1

Horizontal shear angle in degrees (rows slide sideways)

Skew Y
skew_y
Float
0-85–85 / step 1

Vertical shear angle in degrees (columns slide up/down)

Offset X
offset_x
Float
0-4096–4096 / step 1

Horizontal offset in output pixels, applied after other transforms

Offset Y
offset_y
Float
0-4096–4096 / step 1

Vertical offset in output pixels, applied after other transforms

Pivot
pivot_mode
Enum
Center—

Transformation pivot

  • CenterCenter
    Transform around the image center
  • CustomCustom
    Transform around a custom pivot point
Pivot X
pivot_x
Float
0-4096–4096 / step 0.5

Custom pivot X

Pivot Y
pivot_y
Float
0-4096–4096 / step 0.5

Custom pivot Y

Method
sampling
Enum
Auto—

Resampling quality

  • AutoAuto
    Axis-aligned transforms use exact Nearest; rotation or skew switches to RotSprite
  • RotSpriteRotSprite
    Upscales with Scale2x before mapping, then picks the majority color
  • NearestNearest
    Nearest-neighbor sampling — fast but stair-steps on rotated or skewed edges
Canvas
canvas
Enum
Keep—

Output canvas size

  • KeepKeep
    Keep the original size — parts moved outside are cut off
  • ExpandExpand
    Grow the canvas so the transformed image fits entirely

Overview

A general affine transform that combines fractional or negative scale, arbitrary rotation, skew, and translation in one resampling pass. It consolidates transformations otherwise handled separately by transform, pixel_rotate, and content_resize.

Usage tips

  • Chaining raster transforms loses quality at every step. Combine rotation, scale, and skew in this one node whenever possible.
  • Auto is the normal sampling choice: axis-aligned transforms use pixel-exact Nearest, while arbitrary rotation or skew uses RotSprite.
  • Canvas preserves the original size by default. Select Expand if rotation or enlargement clips the result.
  • For path-based assets, prefer path_transform before rasterization. It offers the same affine operations, including skew, without raster quality loss.

Common mistakes

  • Pixel thickness varies with fractional scale: this is expected with nearest-neighbor scaling. RotSprite reduces the problem, but integer scale with pixel_scale gives the most consistent pixel-art result.
  • Skew clips the edges: change Canvas from Keep Size to Expand.
  • Only rotation is needed: pixel_rotate can produce the same result and defaults to Expand. Either node is valid.

Related nodes

  • path_transform — lossless path-stage equivalent, including skew
  • transform — lightweight integer-scale and 90° rotation transform
  • pixel_rotate — rotation-only transform and the source of RotSprite sampling
  • quad_transform — trapezoid and corner-pin projection
Back to Node List