> For the complete documentation index, see [llms.txt](https://help.arcanalabs.ai/learning-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.arcanalabs.ai/learning-center/demos-and-tutorials/paintbrush-for-fixing-an-image.md).

# Paintbrush for fixing an image

Paintbrush is the most powerful way to make precision inpaints that quickly get the results you need.

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2F3QaO38X0JvrIKQ4GdPKm%2Fimage.png?alt=media&amp;token=d8a466e1-9b10-4c3c-8ba9-f6e803cae497" alt=""><figcaption><p>Original Conjure</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FOnT4nWBpCx1UmrZET1As%2F51082-0-1726295557.jpg?alt=media&amp;token=76287360-4f3e-4920-99b8-5d3d94a8878f" alt=""><figcaption><p>Fixed with inpaint + paintbrush</p></figcaption></figure>

## &#x20;                                                         STEPS

OVERVIEW OF STEPS:

1. using dropper to match the environment's colors, crudely recolor the space to conceptualize the fix
2. mask over it
3. prompt the change you want to see
4. work from 30-66% transformation
5. Use MJ XL model for best results using paintbrush&#x20;
6. Send improved results to source to repeat any process until refined\
   \ <br>

STEP 1: Using dropper to match the environments colors, crudely recolor the space to conceptualize the fix<br>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FuVLQv2rYxId87spmUgVD%2Fimage.png?alt=media&amp;token=2588be20-dec9-4ad2-b691-27475fcc6900" alt=""><figcaption><p>Using dropper to get the shirt color correct</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FZzyxfzZj5J7tZutqW0FB%2Fimage.png?alt=media&amp;token=76d1930a-ed0d-4e75-b364-2989440eb835" alt=""><figcaption><p>See how we quickly paint to blend into environment. </p></figcaption></figure>

&#x20;                                                                         \
&#x20;                                                                            STEP 2: mask over it

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FN3VVayUkR7fQiipIHqUl%2Fimage.png?alt=media&amp;token=5c7b6b35-e30b-404d-b2c5-0e7ae195a71f" alt=""><figcaption><p>Use Mask brush to Mask over the painted area and allow a bit of the unpainted space to be masked as well so it blends better. The masked area is the area you are telling Arcana you want to transform</p></figcaption></figure>

&#x20;                             \
&#x20;                                                         **STEPS 3-5:** Prompting, Model Selection, Transformation levels set

* **prompt the change you want to see:**  *woman wearing red tanktop tank top, counter with piece of paper*
* **work anywhere within the range of 30-66% Transformation:** We went with 45%. This means transform 45% of the image to something new. In other words, preserve 55% of the original. In our case, this is preserving the colors of our paintbrush.&#x20;
* *Use MJ XL model* for best results using this paintbrush technique. &#x20;

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FzxCcaIIfYb58kndR6SAN%2F51082-0-1726295557.jpg?alt=media&amp;token=6402b2ac-e582-43fd-952f-414af093799d" alt=""><figcaption><p>Result<br><br>Prompt used: <em>woman wearing red tanktop tank top, counter with piece of paper</em><br>Model: MJXL<br>Transformation: 45%</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2F9oJyu4stdBrcjiBSOSGn%2Fimage.png?alt=media&amp;token=1c93b59e-b90b-40ec-b8a6-bfcb2cd3eca5" alt=""><figcaption><p>Before and After</p></figcaption></figure>

&#x20;\
\
\
&#x20;                                                           **BONUS STEP - CHANGING FACE**\
\
\ <br>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FIDvvLkTMKk0fQLyCyfuw%2Fimage.png?alt=media&amp;token=f90c3511-aa72-41f4-9f42-5d4fb9ae01e0" alt=""><figcaption><p>We masked over the face. Selected a model. And wrote the change we wanted to see. In this case we wanted "Freckled girl"<br></p></figcaption></figure>

CHANGES MADE TO FACE USING SAME PROMPT, JUST DIFFERENT MODELS:

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FTjqulHeQ1naBDrsChgtA%2F51082-0-1726295557.jpg?alt=media&amp;token=76eeef97-94a0-49b7-8141-330ed4364603" alt=""><figcaption><p>Original</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2Fb7KaxjP9YdyCTgTTCjf2%2F51136-0-1726297569.png?alt=media&amp;token=4c1b4e74-43f8-4f28-9d54-cbf35c9c66c8" alt=""><figcaption><p>Model:  Raw Camera Pro</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2FVCpjw2BWl46CPGgfbk5m%2F51141-0-1726297836.jpg?alt=media&amp;token=e4475beb-3a22-4dd5-8aa7-29c7763024a1" alt=""><figcaption><p>MODEL: MJ XL</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2Fo3oLZl2CLNT75dk357AD%2F51145-0-1726297848.png?alt=media&amp;token=e6be1039-1990-4dfe-97e7-680f3e6059ac" alt=""><figcaption><p>Modell: SD3 - Large</p></figcaption></figure>

<figure><img src="https://2624966838-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcFb4ihnfBnfd0stkhMX%2Fuploads%2F9rk7ScAnUCE3tVAiR5Pz%2F51148-0-1726298029.jpg?alt=media&amp;token=2da2afce-2e99-47e0-bae1-99222b570696" alt=""><figcaption><p>Model: Photo</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.arcanalabs.ai/learning-center/demos-and-tutorials/paintbrush-for-fixing-an-image.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
