stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Fix image mask/composite for weird resolutions

Open catboxanon opened this issue 2 years ago • 0 comments

Describe what this pull request is trying to achieve.

Closes https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9092

Additional notes and description of your changes

Previously this was not accounting for weird resolutions the user may input.

This PR also slightly changes the functionality and only enters this code block when one of the related options is actually enabled, to shield the majority of users incase something were to somehow go wrong with this again, as none of these options are enabled by default.

Environment this was tested in

  • OS: Windows 11
  • Browser: Firefox
  • Graphics card: NVIDIA RTX 3090

catboxanon avatar Apr 14 '23 21:04 catboxanon