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

Quality of life changes #47

Closed thomasasfk closed 1 year ago

thomasasfk commented 1 year ago

https://github.com/thomasasfk/sd-webui-aspect-ratio-helper/issues/46

Coupling the image retrieval method to the text content was a bad idea, realised it probably wouldn't work if localisation was applied. This has been changed to use the index of the button with the selected class, which is hopefully less brittle and also will work regardless of the hierarchy of elements. Still coupled to the "selected" class though, but its an improvement.