Skip to content

Canvas drawing is cut off when the shape is explicitly set to be a square #3166

Closed
@lllyasviel

Description

@lllyasviel
  • I have searched to see if a similar issue already exists.

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

Right now if we want to make a 512*512 drawing canvas, the only method is (1) ask users to create a pure white 512*512 image using third-party software like PhotoShop, then (2) ask users to import that blank image into gr.Image(source='upload', tool='sketch'), then (3) use the resulting mask as the user drawing for any applications. (Besides, the initial width of scribble can not be set by code.)

This is over-complicated. We should have an one-line function to make a simple drawing canvas.

Describe the solution you'd like

We may consider something like

gr.Image(source='blank', tool='sketch', size=(512, 512))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working🖼️ imageImage component

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions