mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 09:31:53 +02:00
fixed issue with loading transparent images (svg format)
This commit is contained in:
@@ -18,6 +18,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
$core->setBackgroundColor(new \ImagickPixel('transparent'));
|
||||||
$core->readImage($path);
|
$core->readImage($path);
|
||||||
$core->setImageType(\Imagick::IMGTYPE_TRUECOLORMATTE);
|
$core->setImageType(\Imagick::IMGTYPE_TRUECOLORMATTE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user