2025-04-07 14:24:51 +08:00
2025-03-31 15:21:03 +08:00
2025-03-31 15:17:56 +08:00
2025-04-07 14:24:51 +08:00
2025-03-31 15:36:34 +08:00
2025-03-31 15:17:56 +08:00

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 dimensions
  • calculate_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 switching
  • mask_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

S
Description
No description provided
Readme
112 KiB
Languages
Python 100%