Auto Crop

Transforms

Fits or stretches detected content to the canvas.

Select a node to adjust its parameters. Double-click a node to inspect.

Inputs

  • input

Parameters

ParameterTypeDefaultRangeDescription
crop_background
Crop background
enumblackBackground ignored when finding the content to fit. Does not remove or change the background.
  • black : Find content using non-black pixels.
  • transparent : Find content using pixels with nonzero opacity.
mode
Mode
enumfitHow detected content fills the existing canvas.
  • fit : Center and resize content while preserving its proportions.
  • fill : Center and stretch content to fill both canvas dimensions.
filter_mode
Filter
enumbilinearTexture filtering mode.
  • bilinear : Use bilinear sampling for smoother resampling.
  • nearest : Use nearest-neighbor sampling for hard pixel edges.

Outputs

  • output (default format: inherit)