Commit 0034b3c1 by Kevin LEVRON

Fixes #2204

parent ff521fd7
......@@ -14,6 +14,7 @@ use Imagine\Image\ImageInterface;
use Imagine\Image\ImagineInterface;
use Imagine\Image\ManipulatorInterface;
use Imagine\Image\Point;
use Imagine\Image\Palette\RGB;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\helpers\ArrayHelper;
......@@ -155,7 +156,8 @@ class BaseImage
$img = $img->thumbnail($box, $mode);
// create empty image to preserve aspect ratio of thumbnail
$thumb = static::getImagine()->create($box);
$color = (new RGB())->color('#FFF', 100);
$thumb = static::getImagine()->create($box, $color);
// calculate points
$size = $img->getSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment