# Image Editing Mode

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FBKzrUAfeHZWZWFQYePHD%2FScreenshot%202023-06-26%20at%2022.02.26.png?alt=media&#x26;token=07d7de26-464c-4828-b0d8-f6911b0971dc" alt=""><figcaption><p>To trigger image editing mode, click on an individual image</p></figcaption></figure>

Once we have selected an image, there are several things that we can do with it.

{% code overflow="wrap" %}

```
Espresso coffee with a spoon on the side, outside, lake view, wooden table, mountains, Switzerland, rocks photorealistic, sunset, camera angle, lens flare, rim light, 4k
```

{% endcode %}

* **Model**: Real Engine
* **Guidance Scale**: 7
* **Seed**: 2906176704

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FC7pL9IBSueXPoWd9YnQg%2Fimage.png?alt=media&#x26;token=322e12dc-59fe-4258-b356-ecdcbcfd41fa" alt=""><figcaption><p>Starting image</p></figcaption></figure>

* **🎨 Recolor Tool:** Select desired color patterns and the appropriate AI engine to recolor your image.
* **📚 Stylize Tool:** Define the aesthetic you want for your image, altering its style while maintaining its content.
* **💗 Expand Tool:** Grow your image in any direction using the Out-painting feature, which strives to extend the image while retaining its original shape, style, and perspective.
* **😎 Swap Tool:** Change the face of a specific portrait or person in your image with any other face of your choice.

## **🎨** Recoloring the image

![](https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FMWlr5eeQG42KBhiKFDXk%2FScreenshot%202023-06-26%20at%2016.26.41.png?alt=media\&token=9ae952fb-d0b0-46d8-9b47-fe5342da0cfd)

We can try to add more sunset colors. We can use an external color picker to select the color palette that matches the sunset or a lake.

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2F2arqcrjJHQ9jBL6ECDUa%2FScreenshot%202023-06-26%20at%2016.27.42.png?alt=media&#x26;token=eef78d9d-2b0f-49fd-b49b-50920c02b91d" alt=""><figcaption><p>Different recolor options (warmer and colder)</p></figcaption></figure>

## 📚 Stylize tool

![](https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FGgRsnzBxVV8nzAZXXkcq%2FScreenshot%202023-06-26%20at%2016.29.05.png?alt=media\&token=20f56636-abeb-4ae6-92bf-3d14c5a62204)

We can give it a specific style we're looking for via a prompt. For example, keeping the same objective of making it more sunset-like, we can restyle it with the following prompt:

{% code overflow="wrap" %}

```
Golden hour sunset, crystal clear water, photorealistic, 4k, hd
```

{% endcode %}

Note that we don't have to write the original prompt image, only the new style we want to apply.&#x20;

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2F99s2G1B5zA9hCJIrfwFb%2FScreenshot%202023-06-26%20at%2016.32.32.png?alt=media&#x26;token=476cfa53-bd96-4e25-9988-111ac9ed0955" alt=""><figcaption><p>Effect of modifying the image preservation with the above prompt.</p></figcaption></figure>

When adjusting for image preservation, we can select how much we want the new style to overwrite the previous image.

## 💗 Expand tool

![](https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FRXBlK5WEBTsmLkvD7T7E%2FScreenshot%202023-06-26%20at%2022.08.02.png?alt=media\&token=8a99cae1-54d9-44b1-8ab6-c5f122d7219c)

We can also expand the image in any direction with the expand tool.

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FAdRJWKGNA4ioflnviKZx%2FScreenshot%202023-06-26%20at%2022.12.22.png?alt=media&#x26;token=15ea0b13-856b-4411-83ca-eddd0f242854" alt=""><figcaption><p>Overview of the different expansions available for an image</p></figcaption></figure>

If we sequence the expansions to make a larger square image, we produce a Zoom out effect.

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2F9JcAQrzkiZAczUSk8ArR%2FScreenshot%202023-06-26%20at%2022.20.25.png?alt=media&#x26;token=a030541f-1235-4a17-b50d-5d582f7777a7" alt=""><figcaption><p>Chain of expansions producing a Zoom Out effect</p></figcaption></figure>

## 😎 Swap Tool

![](https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2Fg6hnLwcLhoXTPoNwpLPE%2FScreenshot%202023-06-26%20at%2022.24.49.png?alt=media\&token=938335c9-93ca-4864-a95d-82615788ed83)

You can change the facial attributes of a person based on a sample portrait. It works better if they are famous or well-known personalities

<figure><img src="https://1025298504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLY2rXNTpHIzl6JFxbxzb%2Fuploads%2FFOcHK4lucoUELDIcxeWn%2FScreenshot%202023-06-26%20at%2022.25.22.png?alt=media&#x26;token=b651d99e-9e3b-41b0-9c33-76bf4766da02" alt=""><figcaption><p>An example of Swap using Elon Musk as the face to replace the Mariachi</p></figcaption></figure>
