[Feature Request]: Img2Img: Button to reset output dimensions to Source Image dimensions.
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
I would like a button in Img2Img (as well as inpainting, perhaps this moreso) to reset the output dimensions to the dimensions of the Source Image. I don't always actually want to scale/crop the image in these UIs, and this would make that simpler (at this time, if I much with anything, I have to go back and inspect the original image to sort it all out).
An additional component to this feature that would be handy would be a "Lock Aspect Ratio" checkbox. The behaviour of which would be such that updating one dimension would automatically update the other to maintain the aspect ratio.
Proposed workflow
Programmatically: On focus of either dimension fields check if "Preserve Aspect Ratio" is checked, if so, calculate current aspect ration and bind a handler to field update to update the opposite field, if not, debind handler of bound, do nothing.
The Reload Source Dimensions button should bypass the update handler.
Additional information
No response
This looks like a purely JS issue, any one-shot guidance as to where to go to edit this? I'll make a PR.