Nodes/AAA Metadata System/Smart Image Cropper
ComfyUI Node

Smart Image Cropper

Smart Image Cropper - Intelligent content detection and cropping Automatically detects and crops rectangular images from: • Scanned documents and book pages • Magazine layouts with embedded photos • Museum photos with framed artwork • Composite images with borders Features: • Adaptive parameter selection based on image analysis • Automatic text caption exclusion • Multiple detection strategies with intelligent scoring • Handles various background types and lighting conditions • Multi-image detection with intelligent selection Modes: • Auto: Analyzes image characteristics and applies optimal strategy • Conservative: Manual override when auto crops too aggressively • Aggressive: Manual override when auto is too cautious Multi-Image Handling: • Largest Only: Returns the biggest detected image (good for main content) • Best Quality: Analyzes content quality and returns the richest image • First Found: Returns the first valid image (fastest processing)

By EricRollei·Created 9 months ago·Updated 8 months ago· 12
Smart Image Cropper
  • image
  • cropped_image
crop_modeauto
multi_image_handlinglargest_only
min_crop_ratio0.05
debug_modefalse
CategoryEric/Image Processing

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
crop_modeCOMBOautoAuto uses intelligent detection, others are manual overrides when needed
multi_image_handlingCOMBOlargest_onlyHow to handle multiple images: largest_only picks biggest area, best_quality analyzes content
min_crop_ratioFLOAT0.050.01–0.5Minimum crop size as ratio of original (prevents over-cropping)
debug_modeoptBOOLEANfalsePrint detailed analysis and decision information

Outputs (1)

NameTypeDescription
cropped_imageIMAGE