Klace / stable-diffusion-webui-instruct-pix2pix

Extension for webui to run instruct-pix2pix
Other
319 stars 20 forks source link

Automatically preserve aspect ratio of image using img2img #65

Open zweedao opened 1 year ago

zweedao commented 1 year ago

The old extension preserves aspect ratio of the input image, so the the output image will have the same aspect ratio. This is the right behavior of an image editing tool like instruct-pix2pix.

Now that we move to img2img, I can't figure out how to easily preserve aspect ratio. I need to manually calculate the ratio of the input image & set the Width & Height for output, which is time consuming when editing many images.

Would be great to have a checkbox to "Preserve aspect ratio of the input image".