Magento – Magento 2 – How to remove the white borders from images in product list page

magento2

Magento 2 – How can I remove the white borders from images in product list page?

how can i remove white frame around image in product list page

Best Answer

You have to add false to view.xml in YOUR_THEME/etc/view.xml to the "category_page_list" image ID.

Example:

<?xml version="1.0"?>
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
    <media>
        <images module="Magento_Catalog">
            <image id="category_page_list" type="small_image">
                <width>240</width>
                <height>300</height>
                <transparency>false</transparency>
            </image>
        </images>
    </media>
</view>