Given min/max resolution constraints, this automatically suggests optimal dimensions while preserving aspect ratio. Ideal for Image to Image (I2I) and Image to Video (I2V) workflows!
A ComfyUI node that analyzes images and suggests optimal dimensions while preserving aspect ratio. This node is particularly useful in image-to-image and image-to-video workflows where maintaining aspect ratios and resolution constraints is crucial.
Image
inputImage Passthrough
output to your preferred resize node (e.g., Image Resize)Constrained Width
and Constrained Height
outputs to set the dimensions in your resize nodeExample:
Use ComfyUI Manager or follow these manual installation steps:
custom_nodes
folder in your ComfyUI directory if it doesn't existcustom_nodes
folder:
git clone https://github.com/EnragedAntelope/ComfyUI-ConstrainResolution.git
See the LICENSE file for details.