In this node you have
|
if width == 0: |
|
width = W |
|
if height == 0: |
|
height = H |
Which seems to be in conflict with:
|
if keep_proportion == "resize" or keep_proportion.startswith("pad") or pillarbox_blur: |
|
# If one of the dimensions is zero, calculate it to maintain the aspect ratio |
|
if width == 0 and height != 0: |
How can width be 0 if it was assigned the image width?
I think the original intention was:
if width == 0 and height == 0:
width, height = W, H
BTW: why did you remove the get_image_size input from the previous version, I think this is handy
In this node you have
ComfyUI-KJNodes/nodes/image_nodes.py
Lines 2508 to 2511 in b1fffd3
Which seems to be in conflict with:
ComfyUI-KJNodes/nodes/image_nodes.py
Lines 2518 to 2520 in b1fffd3
How can width be 0 if it was assigned the image width?
I think the original intention was:
BTW: why did you remove the
get_image_sizeinput from the previous version, I think this is handy