4

We've recently started having issues where transparent PNG's are being cached with semi black backgrounds. Has anyone encountered similar issues? Some of the transparency is maintained, however some is replace by black. We're just using the below, which is pretty standard for bringing product images out onto the page;

<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(100); ?>

Thanks,

2
  • 1
    Looking at the code, it seems more logical that it's the resizing, not the caching, that causes this problem.
    – SPRBRN
    May 21 '13 at 14:43
  • @rxt - More than probably, however the question remains on how we get this working correctly?
    – thebluefox
    May 22 '13 at 8:54
1

Look at the following question: https://stackoverflow.com/questions/279236/how-do-i-resize-pngs-with-transparency-in-php

I see several solutions that should work. You can test them on your server, outside of magento. You could test this locally as well. This way you can see if this works at all on your server. Maybe you're missing some php module?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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