ComfyUI Extension: ComfyUI-Image-Resizing
Precision dimension control nodes for aspect ratio adjustments and resizing workflows
Custom Nodes (0)
README
ComfyUI Image Resizing
Precision dimension control nodes for aspect ratio adjustments and resizing workflows
Core Features
đ Aspect Ratio Calculations
calculate_aspect_ratio_extension
âş
Computes required pixel extension to match target proportions
âş
Outputs integer value for direct pipeline integration
đ˘ Scaling Mathematics
calculate_upscale_factor
âş
Determines optimal scaling ratio between source/target dimensionscalculate_upscale_rounds
âş
Calculates iteration count for multi-stage upscaling (requires IF node)
đď¸ Canvas Manipulation
extend_canvas_by_percentage
âş
Expand canvas using % or absolute pixels (use_pixels
toggle)image_crop_by_percentage
âş
Precision cropping with %/pixel unit switchingmask_crop_by_percentage
âş
Synchronized mask cropping with identical controls
Key Advantages
-
Pixel-Perfect Precision
â¸
Mathematical dimension calculations
â¸
Rounding control for production pipelines -
Dual Measurement Modes
â¸
Seamless percentage â pixel conversion
â¸
Unit toggling without breaking workflows -
Non-Destructive Workflow
â¸
All operations preserve source data
â¸
Chainable outputs for complex transforms
Typical Use Cases
Content preparation: â Adapt assets for specific aspect ratios â Create social media templates â Match AI model input requirements
Production workflows: â Batch canvas extensions â Multi-stage upscale preparations â Mask-accurate image editing