zero01101 / openOutpaint

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

[Feature Request]: Mirror selected image region (horiz+verti) #223

Closed GeorgLegato closed 1 year ago

GeorgLegato commented 1 year ago

Is your feature request related to a problem? Please describe.

If in/outpainting 360-panoramas left edge and right edge needs to be seamless. On txt2img we can use Assymetric Tiling-X ok, but after upscael the Tiling-X is lost.

The great outpuaint extension can help here, see screenshot. Need to copy right edge to the left, mirror X, mask and repaint this area to get rid of seam. same on the other edge

image

Describe the solution you'd like

When in select area mode (where you can move, rotate, scale) that area, add something to mirrot the selection. Maybe like add add an icon next to the knob to rotate the selection.?

Proposed workflow

try to edit a 360-flatted image

Describe alternatives you've considered

none

Additional context

No response

seijihariki commented 1 year ago

Hello, almost sure we do have a mirror for stamps, but I do agree that it would be a good idea to add the functionality to basic selection as well.

For now, you can add it as a resource, and use the mirroring there. Will send a pull soon to fix this.

seijihariki commented 1 year ago

@GeorgLegato Just created a testing pull request. If you could try the branch and validate if the implementation works, it would be great!

GeorgLegato commented 1 year ago

i used "gh pr 223" and have a local folder "outpaint" in my extension folder restarting webui does not show the outpainting tab. how different is the dev repo vs the release one? once up, i test the mirror feature

seijihariki commented 1 year ago

You should have to check the branch on the app directory directly, as no changes were made to the actually extension, only to the web App.

GeorgLegato commented 1 year ago

@seijihariki I did it... the outpaint.bat was it... ok, selection on image is doing well image