thomasasfk / sd-webui-aspect-ratio-helper

Simple extension to easily maintain aspect ratio while changing dimensions. Install via the extensions tab on the AUTOMATIC1111 webui.
https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git
406 stars 66 forks source link

Support more comprehensive events of img2img upload #42

Closed thomasasfk closed 1 year ago

thomasasfk commented 1 year ago

On img2img, there are many ways to select an image, for example using the upload box, dragging or dropping, pasting onto the page...

At the moment, we support manual upload & drag and drop: https://github.com/thomasasfk/sd-webui-aspect-ratio-helper/blob/c4274cb84fe3c9e1e94df4fdea8fe48d1ecb65c1/javascript/aspectRatioController.js#L348-L349

It would be nice to support ALL options, the one I know and use, that isn't currently supported - is pasting, however there are probably more.