Swatches in Magento 2 are displayed for the configurable products to facilitate the customers to choose from different variations of the product. Swatches are common for the online stores falling in the the fashion and clothing niche, where there are multiple color variations of a single product.
Sometimes the store owner may require to change swatch image size in Magento 2 to match the store theme or provide a better user experience to the visitors. However, the admin panel does not provide any option to resize the swatch image on the product page.
The good thing is that the admin can easily change the swatch image size in Magento 2 by tweaking the code in the view.xml file at the vendor\magento\module-swatches\etc\ directory.
You can read the complete solution at: https://meetanshi.com/blog/magento-2-change-swatch-image-size/
|