From 348539bb1c62c3c09e58c6304997a9742e168e41 Mon Sep 17 00:00:00 2001 From: chflame163 Date: Sun, 29 Sep 2024 12:46:36 +0800 Subject: [PATCH] fix ImageScaleByAspectRatioV2's proportional args max limit to 1e8 --- py/image_scale_by_aspect_ratio_v2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/image_scale_by_aspect_ratio_v2.py b/py/image_scale_by_aspect_ratio_v2.py index 38a3547..112c888 100644 --- a/py/image_scale_by_aspect_ratio_v2.py +++ b/py/image_scale_by_aspect_ratio_v2.py @@ -19,13 +19,13 @@ class ImageScaleByAspectRatioV2: return { "required": { "aspect_ratio": (ratio_list,), - "proportional_width": ("INT", {"default": 1, "min": 1, "max": 999, "step": 1}), - "proportional_height": ("INT", {"default": 1, "min": 1, "max": 999, "step": 1}), + "proportional_width": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}), + "proportional_height": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}), "fit": (fit_mode,), "method": (method_mode,), "round_to_multiple": (multiple_list,), "scale_to_side": (scale_to_list,), # 是否按长边缩放 - "scale_to_length": ("INT", {"default": 1024, "min": 4, "max": 999999, "step": 1}), + "scale_to_length": ("INT", {"default": 1024, "min": 4, "max": 1e8, "step": 1}), "background_color": ("STRING", {"default": "#000000"}), # 背景颜色 }, "optional": {