We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73a6497 + fdcf396 commit 3be0322Copy full SHA for 3be0322
Imagine/Filter/Loader/BackgroundFilterLoader.php
@@ -3,7 +3,6 @@
3
namespace Liip\ImagineBundle\Imagine\Filter\Loader;
4
5
use Imagine\Image\Box;
6
-use Imagine\Image\Color;
7
use Imagine\Image\ImageInterface;
8
use Imagine\Image\ImagineInterface;
9
use Imagine\Image\Point;
@@ -25,9 +24,9 @@ public function __construct(ImagineInterface $imagine)
25
24
*/
26
public function load(ImageInterface $image, array $options = array())
27
{
28
- $background = new Color(
+ $background = $image->palette()->color(
29
isset($options['color']) ? $options['color'] : '#fff',
30
- isset($options['transparency']) ? $options['transparency'] : 0
+ isset($options['transparency']) ? $options['transparency'] : null
31
);
32
$topLeft = new Point(0, 0);
33
$size = $image->getSize();
0 commit comments