diff --git a/src/Intervention/Image/Gd/Commands/BackupCommand.php b/src/Intervention/Image/Gd/Commands/BackupCommand.php index 8d21ee39..347daea6 100644 --- a/src/Intervention/Image/Gd/Commands/BackupCommand.php +++ b/src/Intervention/Image/Gd/Commands/BackupCommand.php @@ -19,6 +19,10 @@ class BackupCommand extends \Intervention\Image\Commands\AbstractCommand $clone = imagecreatetruecolor($size->width, $size->height); imagealphablending($clone, false); 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); $image->setBackup($clone, $backupName); diff --git a/tests/tmp/crc.png b/tests/tmp/crc.png deleted file mode 100644 index 91988606..00000000 Binary files a/tests/tmp/crc.png and /dev/null differ