Magento – Magento2: how can I resize the image used in gallery in the product page.

fotorama-slidergallerymagento2product

In magento2 product page, the image gallery is rendered by fotorama.

The image size is exactly the same as the one upload to product.

Is it possible to resize all the image to the same size/ratio?

Thanks

Best Answer

In your theme > app/design/frontend/package/theme-name/etc/view.xml Inside <media> node you can define different image sizes:

<images module="Magento_Catalog">
    <image id="product_page_image_medium" type="image">
        <width>700</width>
        <height>560</height>
    </image>
</images>
Related Topic