stable-diffusion-webui-forge
stable-diffusion-webui-forge copied to clipboard
Fix send image and dimensions to not be a footgun
Description
- Prevent copying image size over that are over the limit of 2048 when using "send image and generation parameters" buttons
- simply added min(img.size, 2048)
- it would set the image size to way beyond 2048 and cause a crash when generating :)
Screenshots/videos:
Checklist:
- [ ✔️] I have read contributing wiki page
- [✔️ ] I have performed a self-review of my own code
- [ ✔️] My code follows the style guidelines
- [✔️ ] My code passes tests