Nodes/PortraitUtils/Input & Crop Config
ComfyUI Node

Input & Crop Config

A ComfyUI node in PortraitUtils/Config V2 with 12 inputs and 1 output.

By heyburns·Created 12 months ago·Updated 3 days ago· 2
Input & Crop Config
    • crop_config
    ◄autocrop_section── AUTOCROP · SOLID BORDER REMOVAL ──►
    ◄autocrop_strip_bottom_bannertrue►
    ◄autocrop_detect_borderstrue►
    ◄autocrop_fuzz_tolerance0.07►
    ◄autocrop_edge_uniformity0.85►
    ◄autocrop_pad_px0►
    ◄smart_crop_section── SMART CROP · SUBJECT / NATIVE SIZE ──►
    ◄smart_cropfalse►
    ◄resolution_policyAuto (preserve detail)►
    ◄forced_aspect_ratioAuto►
    ◄subject_mask►
    ◄padding_fillEdge extension►
    CategoryPortraitUtils/Config V2

    Inputs (12)

    NameTypeDefaultDescription
    autocrop_sectionCOMBO── AUTOCROP · SOLID BORDER REMOVAL ──1 options: ── AUTOCROP · SOLID BORDER REMOVAL ──
    autocrop_strip_bottom_bannerBOOLEANtrueRemove a dark text/banner strip touching the bottom edge before border detection.
    autocrop_detect_bordersBOOLEANtrueRemove uniform solid borders before subject framing.
    autocrop_fuzz_toleranceFLOAT0.070–0.5Color variation tolerated while identifying a solid border.
    autocrop_edge_uniformityFLOAT0.850–1Fraction of an edge row/column that must match the border color.
    autocrop_pad_pxINT00–256Pixels of detected border to retain on each cropped edge.
    smart_crop_sectionCOMBO── SMART CROP · SUBJECT / NATIVE SIZE ──1 options: ── SMART CROP · SUBJECT / NATIVE SIZE ──
    smart_cropBOOLEANfalseOFF keeps the widest safe frame. ON frames more tightly around the subject mask.
    resolution_policyCOMBOAuto (preserve detail)Auto: FireRed uses ~1 MP workflow presets; Klein can use 1/1.5 MP; Qwen 2.1 can also use 2K (~4 MP). Force 1.5 MP is an experimental larger output for FireRed. Force 2K is Qwen 2.1 only.
    forced_aspect_ratioCOMBOAutoForce an exact output aspect family, or use Auto for minimal cropping.
    subject_maskSTRING—
    padding_filloptCOMBOEdge extensionSmart Photo Prepare only: fill added canvas with Black, White, or repeated edge pixels. Does not change crop/protection decisions or AutoCrop border removal.

    Outputs (1)

    NameTypeDescription
    crop_configPORTRAIT_CROP_CONFIG_V2—