Files
tono/docs/nodes/Crop-Resize.md
2026-03-30 23:10:42 -07:00

1.3 KiB

Crop / Resize

Crop a DATA_FIELD with a draggable rectangle defined by two corners, then optionally resize it. Cropping updates physical extents and offsets; resizing preserves the cropped physical size.

Inputs

Name Type Required Description
field DATA_FIELD Yes Input field to crop
corner_a COORD No Locks the top-left corner of the crop box
corner_b COORD No Locks the bottom-right corner of the crop box

Outputs

Name Type Description
field DATA_FIELD Cropped (and optionally resampled) field

Controls

Name Type Default Description
target_width INT 0 Output pixel width after resampling (0 = keep cropped width)
target_height INT 0 Output pixel height after resampling (0 = keep cropped height)
interpolation dropdown bilinear Resampling interpolation: bilinear, nearest, or bicubic

Limitations

  • The crop region must have non-zero width and height; an error is raised otherwise.
  • If only one of target_width or target_height is set, the other dimension is computed to preserve aspect ratio.
  • Physical extents are scaled proportionally when resampling.