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]: line, rectangle, circle tool #216

Open airtonix opened 1 year ago

airtonix commented 1 year ago

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

Instead of merely just the single tool that requires you to freehand draw, lets provide some accurate modes of drawing.

Describe the solution you'd like

Proposed workflow

  1. see on tool palette: draw tool, line tool, circle tool, rectangle tool.
  2. see above description

Describe alternatives you've considered

complicated automation tools using some external scripting tools to simulate a human using the mouse.

Additional context

No response

zero01101 commented 1 year ago

hey, so are you asking with regard to the color sketch tool i'm guessing, as that'd be contextually the only real place this would make sense as far as i can tell? lol

i definitely appreciate the alternative you suggested 👍

openOutpaint's definitely not supposed to be a full-on replacement for a pixel-based image editor but additional tools can certainly be looked into; don't expect them anytime particularly soon however ;) the intended base usecase openOutpaint was made for is pretty mature and functional so development's slowed down rather significantly, plus the unfortunate realities of Real Life keep demanding attention, but i'll leave the issue open to remind me :)

airtonix commented 1 year ago

color sketch tool

No this is merely for the purposes of masking. I find it strange that we can't create accurately straight lines when defining masking areas.

FatGuy84 commented 1 year ago

@airtonix If it's mainly about masking a subject, like a person, I think my feature proposal is quite straight forward: https://github.com/zero01101/openOutpaint/issues/217

zero01101 commented 1 year ago

@airtonix so if you peruse the issues/discussions around here you'll likely notice a common theme is that i'm an idiot

yeah, masking tools is definitely another place those would make sense lol

if nothing else i'll see about adding an arbitrary square/rectangle like other tools can use to define the reticle size

seijihariki commented 1 year ago

The mask tool is quite clean in terms of context menu usage. It probably would not be much of a UI problem to add some toggles. Just that for this it would be optimal to implement a tab system of sorts. We could use a select menu and some not-so-beautiful JavaScript to hide unused buttons, though.