In my checkout cart there is a white frame/border/background around my actual product image. it is because the image is not in the format 1:1

now my problem is, how to get rid of the white frame/border around the actual product image.

I am using Magento

I tried changing my code in checkout/cart/item/default.phtml like this:




$this->helper('catalog/image')->init($this->getProduct(), 'thumbnail',

Now when I do this the cart does not work anymore

I really need help

closed as off-topic by David Manners, user487772 May 25 '14 at 6:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – David Manners, user487772
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->keepAspectRatio(flase)->keepFrame(false)->resize(100); perhaps? Note the keepAspectRatio. – B00MER May 6 '14 at 3:57

Try changing




  • thank you! sadly this did not help. now the cart does not show any items – user1895720 Apr 5 '14 at 11:47

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