Nodes/PortraitUtils/Intelligent AutoCrop
ComfyUI Node

Intelligent AutoCrop

Remove solid hosting borders and text-bearing dark footers. Uses the existing crop config. Crops only; no resize or color changes.

By heyburns·Created 12 months ago·Updated 3 days ago· 2
Intelligent AutoCrop
  • image
  • crop_config
  • image
  • trim_left
  • trim_top
  • trim_right
  • trim_bottom
  • detected
◄border_policyConservative►
CategoryPortraitUtils/Transform

Inputs (3)

NameTypeDefaultDescription
imageIMAGE—
crop_configPORTRAIT_CROP_CONFIG_V2—
border_policyoptCOMBOConservativeConservative: require 98.5% solid edge coverage and cap color tolerance at 0.12. Configured tolerances: use the config thresholds literally; inspect crops carefully. Both require a bounded border and a contrasting content boundary.

Outputs (6)

NameTypeDescription
imageIMAGE—
trim_leftINT—
trim_topINT—
trim_rightINT—
trim_bottomINT—
detectedBOOLEAN—