1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 12:11:26 +02:00

fixed bug (fill did not keep transparency)

This commit is contained in:
Oliver Vogel
2014-05-11 14:35:55 +02:00
parent 28af54ac8b
commit c2d9a9a320

View File

@@ -37,7 +37,7 @@ class FillCommand extends \Intervention\Image\Commands\AbstractCommand
if (is_int($x) && is_int($y)) {
// resource should be visible through transparency
$base = imagecreatetruecolor($width, $height);
$base = $image->getDriver()->newImage($width, $height)->getCore();
imagecopy($base, $resource, 0, 0, 0, 0, $width, $height);
// floodfill if exact position is defined