# Example Image with Mask

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexample-image-with-mask%2F23414%3E%5C
**Category:** 🔒 Gradio\
**Created:** [September 20, 2022, 9:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexample-image-with-mask%2F23414 "2022-09-20T21:02:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/johko/32/24763_2.png) [@johko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjohko)%5C
**Post date:** [September 20, 2022, 9:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexample-image-with-mask%2F23414%2F1 "2022-09-20T21:02:48Z")

</div>

When I use the `sketch` option in an image input, how do I define an example mask input in Gradio?

I tried to build a numpy array matching the size of the image and filled like a clean mask, but that did not work.

here is one way I tried:

```auto
example_mask = np.empty((327,600,4))
example_mask[:] = [0,0,0,255]
examples=[["bruce.png", example_mask], "64", "128"],

```

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabidlabs)%5C
**Post date:** [September 22, 2022, 6:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexample-image-with-mask%2F23414%2F2 "2022-09-22T18:41:30Z")

</div>

Currently, it is not possible to provide an example mask. We’ll work on this in the future!

We are keeping track of sketching-related issues here: [refreshed image input component · Issue #466 · gradio-app/gradio · GitHub](https://github.com/gradio-app/gradio/issues/466)

Would you kindly be able to add this to the issue?

---

<div class="post-metadata">

**Author:** ![johko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/johko/32/24763_2.png) [@johko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjohko)%5C
**Post date:** [September 23, 2022, 8:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexample-image-with-mask%2F23414%2F3 "2022-09-23T08:49:58Z")

</div>

Thank you for the reply, I will add the topic in the issue 🙂
