zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
507 stars 44 forks source link

brushed masks follow expanded canvas to new x/y origins #117

Closed zero01101 closed 1 year ago

zero01101 commented 1 year ago

Describe the bug after expanding the canvas upwards or to the left, any brushed masks use the new "0px origin" instead of where they're actually drawn

To Reproduce

Expected behavior the modified result should be where the mask is drawn instead of being offset by the new x-axis "zero point"

Screenshots image image image --after expanding vertically-- image

Desktop (please complete the following information):

seijihariki commented 1 year ago

On it

seijihariki commented 1 year ago

Strangely, this was a case of overcorrection rather than a lack of corrections.

I previously modified masking to work with a less magical version of the black magic, but after making the mask as magical as it is now, those corrections were moving things to the other side.

Simple commit incoming.

zero01101 commented 1 year ago

lmao i was literally going to look into this later and oh gee you fixed it in 5 minutes of noticing

enormous thanks as always :D

zero01101 commented 1 year ago

I previously modified masking to work with a less magical version of the black magic, but after making the mask as magical

i just wanted to say i love this so so much