diff --git a/Imagine/Filter/Loader/BackgroundFilterLoader.php b/Imagine/Filter/Loader/BackgroundFilterLoader.php index 0e1df3a73..0febadd33 100644 --- a/Imagine/Filter/Loader/BackgroundFilterLoader.php +++ b/Imagine/Filter/Loader/BackgroundFilterLoader.php @@ -3,6 +3,7 @@ namespace Liip\ImagineBundle\Imagine\Filter\Loader; use Imagine\Image\Box; +use Imagine\Image\Color; use Imagine\Image\ImageInterface; use Imagine\Image\ImagineInterface; use Imagine\Image\Point; @@ -24,9 +25,9 @@ public function __construct(ImagineInterface $imagine) */ public function load(ImageInterface $image, array $options = array()) { - $background = $image->palette()->color( + $background = new Color( isset($options['color']) ? $options['color'] : '#fff', - isset($options['transparency']) ? $options['transparency'] : null + isset($options['transparency']) ? $options['transparency'] : 0 ); $topLeft = new Point(0, 0); $size = $image->getSize();