The banners are transparent PNGs with rounded edges, but Opencart is losing the transparency before saving them to the cache folder.
It works perfectly if the banners are resized/shrunk (the 100x100 thumbnail has transparency), but it doesn't work when they're displayed in their original dimensions. We've tracked it down to line 64 of system/library/image.php, inside the resize() function:
Code: Select all
if ($scale == 1) {
return;
}
We solved it for our site like this:
Code: Select all
if ($scale == 1 && $this->info['mime'] != 'image/png') {
return;
}
Hope to see this pushed through to the next release so I don't have to hack or vQmod all our stores
