Improved transparency appearance in JPG thumbnails
This commit is contained in:
parent
876c3fc34e
commit
e6ab9ee3b3
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ class ImagickImageManipulator implements IImageManipulator
|
||||||
switch ($format)
|
switch ($format)
|
||||||
{
|
{
|
||||||
case self::FORMAT_JPEG:
|
case self::FORMAT_JPEG:
|
||||||
|
$imageResource->setImageBackgroundColor('white');
|
||||||
|
$imageResource = $imageResource->flattenImages();
|
||||||
$imageResource->setImageFormat('jpeg');
|
$imageResource->setImageFormat('jpeg');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue