mirror of
https://github.com/Intervention/image.git
synced 2025-08-14 18:04:01 +02:00
bugfix
This commit is contained in:
@@ -19,6 +19,10 @@ class BackupCommand extends \Intervention\Image\Commands\AbstractCommand
|
|||||||
$clone = imagecreatetruecolor($size->width, $size->height);
|
$clone = imagecreatetruecolor($size->width, $size->height);
|
||||||
imagealphablending($clone, false);
|
imagealphablending($clone, false);
|
||||||
imagesavealpha($clone, true);
|
imagesavealpha($clone, true);
|
||||||
|
$transparency = imagecolorallocatealpha($clone, 0, 0, 0, 127);
|
||||||
|
imagefill($clone, 0, 0, $transparency);
|
||||||
|
|
||||||
|
// copy image to clone
|
||||||
imagecopy($clone, $image->getCore(), 0, 0, 0, 0, $size->width, $size->height);
|
imagecopy($clone, $image->getCore(), 0, 0, 0, 0, $size->width, $size->height);
|
||||||
|
|
||||||
$image->setBackup($clone, $backupName);
|
$image->setBackup($clone, $backupName);
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 170 B |
Reference in New Issue
Block a user