i want to change the background color of product image on product page.as by default the color is white but can same be changed ?

we have cropped images but as per main image the background doesn't match. as can be seen in image the background is white can a custom color be set on the same. enter image description here

  • What Magento version are you using?
    – Greg
    Jan 24, 2018 at 14:38
  • magento 2.2.0 ( community ) Jan 24, 2018 at 17:05

1 Answer 1


Override below file in your theme :


In your theme


Go to Line No. 1014

.fotorama__stage {
   background: #333333; /*Add background color */
  • Is that working for you please vote so another people use same, Thanks May 15, 2018 at 11:55

Your Answer

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

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