From 6064d03ff9b4548cc501dbfb8439dfdc757c9e61 Mon Sep 17 00:00:00 2001 From: sugarkwork Date: Wed, 4 Jun 2025 09:48:12 +0900 Subject: [PATCH] add --- nodes.py | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 3623b48..40fe895 100644 --- a/nodes.py +++ b/nodes.py @@ -432,6 +432,8 @@ NODE_CLASS_MAPPINGS = { "CalculateImagePadding": CalculateImagePadding, "MatchImageToAspectRatio": MatchImageToAspectRatio, "CalcFactorWidthHeight": CalcFactorWidthHeight, + "AspectRatio": AspectRatio, + } NODE_DISPLAY_NAME_MAPPINGS = { @@ -439,7 +441,9 @@ NODE_DISPLAY_NAME_MAPPINGS = { "SizeToWidthHeight": "SizeToWidthHeight", "CalculateImagePadding": "CalculateImagePadding", "MatchImageToAspectRatio": "MatchImageToAspectRatio", - "CalcFactorWidthHeight": "CalcFactorWidthHeight" + "CalcFactorWidthHeight": "CalcFactorWidthHeight", + "AspectRatio": "AspectRatio", + } diff --git a/pyproject.toml b/pyproject.toml index 9a7d5e9..61f7822 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ComfyUI_AspectRatioToSize" description = "A ComfyUI custom node that calculates width and height while maintaining aspect ratio, making it easier to determine image resolutions with specified aspect ratios and longer side values." -version = "1.0.3" +version = "1.0.4" license = { file = "LICENSE" } dependencies = []