Improved transparency appearance in JPG thumbnails

This commit is contained in:
Marcin Kurczewski 2014-11-10 09:03:09 +01:00
parent 876c3fc34e
commit e6ab9ee3b3

View file

@ -44,6 +44,8 @@ class ImagickImageManipulator implements IImageManipulator
switch ($format)
{
case self::FORMAT_JPEG:
$imageResource->setImageBackgroundColor('white');
$imageResource = $imageResource->flattenImages();
$imageResource->setImageFormat('jpeg');
break;