Magento 2 – Product image not changing with swatch colour

Go to Product under Stores > Attributes.

attribute

Search for the attribute which’s image change not working and open the attribute. Select Yes on Update Product Preview image option

swatch not changing product image

Also don’t forget to check the options β€œVisible on Catalog Pages on Storefront” and β€œUsed in Product Listing” for the attribute are set to β€œyes”.