This custom ComfyUI node, Find Perfect Resolution, calculates an optimal output resolution for an input image while preserving its aspect ratio and ensuring dimensions are divisible by a specified value. It is...
Perfil do pacote
README
This custom ComfyUI node, Find Perfect Resolution, calculates an optimal output resolution for an input image while preserving its aspect ratio and ensuring dimensions are divisible by a specified value. It is designed to work seamlessly in ComfyUI workflows, particularly for resizing images with nodes like "Resize Image v2".
Accepts an image (from a "Load Image" node) to determine the original dimensions and aspect ratio.
Fontes
3 fontesTrechos de fonte
1 trechoSource context: Repo ashtar1984/comfyui-find-perfect-resolution
Returns two integers (width, height) representing the calculated resolution, maintaining the original aspect ratio and adhering to the divisible_by constraint.
Listed under "utils" in ComfyUI's node menu.
Ideal for workflows requiring precise image resizing while maintaining aspect ratio and ensuring dimensions meet specific divisibility requirements (e.g., for compatibility with H.264 encoding or other processing constraints).Installation
Nós neste pacote
Nó 1Verificado 12 de set.
Verificado 12 de set.