nicolas wrote: Hi,
try adding the code:
else {
$bgcolor = imagecolorallocatealpha($resource, 255, 255, 255, 127);
}
before the code:
First thanks for the quick answer..
I put in the code like this:
if($bgcolor === false || $bgcolor === -1)
$bgcolor = imagecolorallocate($resource, hexdec($rgb[0]), hexdec($rgb[1]), hexdec($rgb[2]));
}
}
else {
$bgcolor = imagecolorallocatealpha($resource, 255, 255, 255, 127);
}
if($bgcolor === false) {
$bgcolor = imagecolorallocatealpha($resource, 255, 255, 255, 0);
if($bgcolor === false || $bgcolor === -1)
$bgcolor = imagecolorallocate($resource, 255, 255, 255);
}
return $bgcolor;
}
After that I completely removed the thumb files, and removed cache in Joomla.
Sadly the new generated thumb still has a white background in my case. But maybe I did the code wrong?
Thanks again.
Greetz
Appie