ComfyUI aspect-ratio node — preset + custom ratios, base-resolution scaling, configurable divisible_by alignment (8/16/64…), and a live in-node preview. GPL-3.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
979 B
Python
21 lines
979 B
Python
# ComfyUI-QuickRatio — aspect-ratio calculator node for ComfyUI.
|
|
# Copyright (C) 2025 Dragon7108
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify it under the terms
|
|
# of the GNU General Public License as published by the Free Software Foundation, either
|
|
# version 3 of the License, or (at your option) any later version. It is distributed WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE. See the GNU General Public License for more details, a copy of which
|
|
# ships in LICENSE and is available at <https://www.gnu.org/licenses/>.
|
|
"""
|
|
ComfyUI-QuickRatio
|
|
Quick aspect ratio calculator with live dimension preview
|
|
"""
|
|
__version__ = "1.0.0"
|
|
|
|
import pathlib
|
|
from .quick_ratio_node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
WEB_DIRECTORY = str(pathlib.Path(__file__).parent / "web")
|
|
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY', '__version__'] |