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 del paquete
Léeme
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.
Fuentes
3 fuentesExtractos de fuentes
1 extractoSource 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
Nodos de este paquete
1 nodoVerificado 12 sept
Verificado 12 sept