# 🖼️ Auto image swatch

{% hint style="success" %}
**Available on:** Product page, Collection page
{% endhint %}

✨Demo product: [Auto image swatch](https://optis-color-swatch-variant.myshopify.com/products/auto-image-swatch?_pos=1&_psq=auto&_ss=e&_v=1.0) (password: 1)

<figure><img src="/files/tXwTG7ispFksc3gxZyAX" alt=""><figcaption></figcaption></figure>

### **Function**

Automatically creates image swatches from the variant images set in Shopify.

<figure><img src="/files/EwyUpmZ5Zj8jA06nFyCP" alt=""><figcaption></figcaption></figure>

### **Use when**

* Each variant already has its own product image (e.g. Color = Red, Blue, Black).
* You want swatches to always stay in sync with Shopify images.

### How it works

* No manual upload needed.
* Changing variant images in Shopify will update the swatches after syncing.

### **How it looks on your store**&#x20;

* Product page:&#x20;

<figure><img src="/files/4YSzWa1N8BsPvSe0ZiIg" alt=""><figcaption></figcaption></figure>

* Collection page:

<figure><img src="/files/9YTVu0aHrSisBjzGKncE" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.optis.me/swatch/variant-display/auto-image-swatch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
