Learn how to change the proportions of your product images in the following areas of your online store:

Product list section

Click on the product list section, and select Edit section. Expand the Layout tab and change the number of columns. The more columns, the smaller the product images, and vice versa:

How to show images in their original proportions, not square?

Access the website's integrations settings, and paste the below code in the Custom code field:

<script>
function changeImageAddress(url) {
const sourceStart = url.substring(0, 25);
const sourceMiddle = 'cdn-cgi/image/format=auto,w=600,h=600,fit=scale-down,q=100/';
const sourceEnd = url.substring(url.indexOf('cdn-ecom'));
return sourceStart + sourceMiddle + sourceEnd;
}
setInterval(() => {
if (document.querySelector('.block-product-list-wrapper') !== null && document.querySelector('.fullImage') === null) {
document.querySelectorAll('.product-list-item__image').forEach(image => {
image.insertAdjacentHTML("afterend", `<img class="fullImage" src="${changeImageAddress(image.src)}">`)
image.remove();
})
}
}, 100);
</script>
<style>
.product-list-item__image-wrapper {
padding-bottom: 0 !important;
}
.fullImage {
width: 100%;
height: 100%;
object-fit: contain;
}
</style>

Save the changes and update your website.

NOTE: As images will be shown in their original resolution, they will take longer to load, thus may slow down the website


Single product section and/or product page

Click on the product section, and select Edit section; then expand the Layout tab and change the image ratio:

To show images in their original proportions, select Original. If you select Square, you can also change the image border-radius (round the image corners).

Did this answer your question?