How to remove white background from product images in Magento 2.2.6? Please check this screenshort


2 Answers 2


In your view.xml set "width" and "height" as you wish and then "transparency" , "aspect_ratio" and "frame" to "false"


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

find category_page_grid In view.xml of your theme and add


node it will remove the white background / frame from images ( this will only remove from listing page )

your code will be li like this:

<image id="category_page_grid" type="small_image">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.