> For the complete documentation index, see [llms.txt](https://docs.optis.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optis.me/swatch/variant-display/auto-image-swatch.md).

# 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="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-6b2f18b8be5b57d09f1f2115f919e66f7fc4e648%2Fauto-image-swatch-hero.png?alt=media" alt="Auto image swatch shown on a product"><figcaption></figcaption></figure>

### **Function**

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

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-b2ae5875d30bdc9dec217d1b0ebb78c0db07ce0f%2Fauto-image-swatch-from-variant-images.png?alt=media" alt="Auto image swatches generated from Shopify variant images"><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**

* Product page:

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-9ac988ffe661679b70d8bc00abbf87c819801c85%2Fauto-image-swatch-product-page.png?alt=media" alt="Auto image swatch on the product page"><figcaption></figcaption></figure>

* Collection page:

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-9e41c8f4db162be544662d7fb8752db7c83e3d13%2Fauto-image-swatch-collection-page.png?alt=media" alt="Auto image swatch on the collection page"><figcaption></figcaption></figure>
