comfyui-plugins icon indicating copy to clipboard operation
comfyui-plugins copied to clipboard

[Question] How do the resize with "resize and fill" mode like A1111 with your comfyui plugins?

Open seanphan opened this issue 2 years ago • 5 comments

Hi, your plugins are amazing. I'm truly appreceating your work on this, save me tons of hours!!!

I have question in the title if you can direct me to the right direction would help a lot. Thanks again.

seanphan avatar Jun 10 '23 11:06 seanphan

These are various custom_nodes from different authors. I only developed WAS Node Suite. What custom_nodes are you having trouble with?

WASasquatch avatar Jun 10 '23 16:06 WASasquatch

Hi,

Thanks for the prompt reply.

I have problem with the image resize node.

E.g: I want resize a 512x512 to a 512x768 canvas without stretching the square image.

Not sure how to do that yet

On Sat, Jun 10, 2023, 11:25 PM WAS @.***> wrote:

These are various custom_nodes from different authors. I only developed WAS Node Suite. What custom_nodes are you having trouble with?

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/comfyui-plugins/issues/7#issuecomment-1585726886, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMI7YHHREFX6X64BXZV3MLXKSNYPANCNFSM6AAAAAAZBUEQPE . You are receiving this because you authored the thread.Message ID: @.***>

seanphan avatar Jun 10 '23 17:06 seanphan

Sounds like you want to "pad" the image.

image

I don't think you can use a fill crop for 512x768 cause the original image is below that resolution so nothing to crop into at that resolution. I mean, a node could be made to do that, but the quality would be pretty bad cropping to like 256x512 then to 512x768

WASasquatch avatar Jun 10 '23 20:06 WASasquatch

image

T3chRomanc3r avatar Jul 28 '24 22:07 T3chRomanc3r

image

The output is transparent, so you'll need to use a Image to RGB node.

WASasquatch avatar Jul 29 '24 06:07 WASasquatch