mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 01:00:06 +02:00
FIX PNGs are now transparent when created from clones
This commit is contained in:
@@ -76,6 +76,8 @@ class Driver extends \Intervention\Image\AbstractDriver
|
||||
$clone = imagecreatetruecolor($width, $height);
|
||||
imagealphablending($clone, false);
|
||||
imagesavealpha($clone, true);
|
||||
$transparency = imagecolorallocatealpha($clone, 0, 0, 0, 127);
|
||||
imagefill($clone, 0, 0, $transparency);
|
||||
|
||||
imagecopy($clone, $core, 0, 0, 0, 0, $width, $height);
|
||||
|
||||
|
Reference in New Issue
Block a user