1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-25 23:06:13 +02:00

removed unwanted matte color when resizing palette images

This commit is contained in:
Oliver Vogel
2013-11-07 14:46:24 +01:00
parent cb8d377258
commit 0661f188ac

View File

@@ -280,7 +280,7 @@ class Image
if ($transIndex != -1) {
$rgba = imagecolorsforindex($image, $transIndex);
$transColor = imagecolorallocate($image, $rgba['red'], $rgba['green'], $rgba['blue']);
$transColor = imagecolorallocatealpha($image, $rgba['red'], $rgba['green'], $rgba['blue'], 127);
imagefill($image, 0, 0, $transColor);
imagecolortransparent($image, $transColor);
} else {