sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

[Feature Request] Automatically set default width + height to the input image resolution

Open hassan-sd opened this issue 2 years ago • 3 comments

It would be nice to have a default width and height that matches the image you upload into the Controlnet media box.

ie

  • I copy an image from discord, I don't know the resolution or I manually drag and drop or select an image to upload
  • I paste the image into the controlnet media upload box
  • Controlnet height and width parameters default to match the input image dimensions

hassan-sd avatar Feb 16 '23 19:02 hassan-sd

I just came here to ask that lol. In the edge cases where you might want to adjust the aspect ratio you could just edit the input image itself.

Dweebking avatar Feb 16 '23 20:02 Dweebking

You can safely ignore canvas h/w when uploading image since it will not be used.

Mikubill avatar Feb 17 '23 00:02 Mikubill

You can safely ignore canvas h/w when uploading image since it will not be used.

Actually yes, but the user should see which resolution his input images are, so they can setup the output w/h corresponding. In my current PR I use the Canvas-Sliders Height/Width to show the size of input images. #336

GeorgLegato avatar Feb 24 '23 03:02 GeorgLegato