Control image swatch dimensions
Control the shape of image swatches displayed on your storefront.
Last updated
Was this helpful?
Control the shape of image swatches displayed on your storefront.
By adjusting the ratio, you can make image swatches appear as squares, portraits, landscapes, or match the aspect ratio.
The smaller the width and height, the faster the image loads.
On the contrary, the larger the width and height of the image, the slower its display speed.
By default, we set it to 150px; you can adjust it to suit your needs.

Example 1:
If your image swatches are displayed at 35 × 35 px on the storefront:
Set the image swatch size to 35 × 35 px.
If the image appears blurry, try increasing it to 50 - 60 px.
Using a size close to the displayed dimensions can significantly improve page performance, reducing image load time compared to using the default size of 150 px.
Example 2:
If your image swatches are displayed at 300 × 300 px on the storefront:
Set the image swatch size to 300 × 300 px.
If you keep the image size at 150 px, the image will be stretched to fill the larger display area, which may result in a blurry or pixelated appearance.
You can control how images fit within the swatch area by adjusting the Background Size setting.
The image fills the entire swatch area.
May crop parts of the image.
Best for creating a uniform appearance.
The entire image is displayed within the swatch area.
No cropping occurs.
May leave empty space around the image.
Choose the option that best matches your image style and store design.
Example image background-size:

💬 Need help?
Email us at 📧 contact@globo.io - we’re happy to assist!
Last updated
Was this helpful?
Was this helpful?