From 009697248fd0aa1875f5639458d482e98fa45e27 Mon Sep 17 00:00:00 2001 From: Inoland Date: Sat, 4 Apr 2026 13:17:00 +0400 Subject: [PATCH] Update image_helper.py --- src/comfyui_ino_nodes/node_helpers/image_helper.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/comfyui_ino_nodes/node_helpers/image_helper.py b/src/comfyui_ino_nodes/node_helpers/image_helper.py index ed47d3c..3fa5c40 100644 --- a/src/comfyui_ino_nodes/node_helpers/image_helper.py +++ b/src/comfyui_ino_nodes/node_helpers/image_helper.py @@ -188,11 +188,9 @@ class InoImageResizeByLongerSideAndCropV2(io.ComfyNode): @classmethod def execute(cls, image, target_width, target_height, padding_color, interpolation, crop, position, x, y) -> io.NodeOutput: - from comfy_extras.nodes_images import GetImageSize, ImageCrop, ResizeAndPadImage - get_image_size = GetImageSize() - image_size = get_image_size.get_size(image) - source_width = int(image_size[0]) - source_height = int(image_size[1]) + from comfy_extras.nodes_images import ImageCrop, ResizeAndPadImage + source_width = int(image.shape[2]) + source_height = int(image.shape[1]) source_is_width_larger = source_width > source_height target_is_width_larger = target_width > target_height