Acly / comfyui-tooling-nodes

Nodes for using ComfyUI as a backend for external tools. Send and receive images directly without filesystem upload/download.
GNU General Public License v3.0
319 stars 38 forks source link

krita selection mask return wrong porpotion if the canvas is not 1:1 #26

Closed jakechai closed 3 weeks ago

jakechai commented 3 weeks ago

Krita selection mask returns the Inpaint image in the wrong proportion if the canvas is not 1:1. selection3

Acly commented 3 weeks ago

Not sure what you're trying to do exactly.

Krita selection mask just returns the mask. The mask has the same shape as the canvas. The output image is applied to the whole canvas.

image

jakechai commented 3 weeks ago

I figured it out. It's because the selection mask returns the shape of the canvas, but I use custom width and height instead of canvas resolution when generating images. So I need to crop and offset the mask before using it. Thanks.