1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-07 14:20:37 +01:00

fixed issue with loading transparent images (svg format)

This commit is contained in:
Oliver Vogel 2016-08-19 16:41:12 +02:00
parent 6886d43f5b
commit 45a41a38bd

View File

@ -18,6 +18,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
try {
$core->setBackgroundColor(new \ImagickPixel('transparent'));
$core->readImage($path);
$core->setImageType(\Imagick::IMGTYPE_TRUECOLORMATTE);