diff options
-rw-r--r-- | libs/tcpdf/tcpdf.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/tcpdf/tcpdf.php b/libs/tcpdf/tcpdf.php index 24fe4fce15..5fe53978b6 100644 --- a/libs/tcpdf/tcpdf.php +++ b/libs/tcpdf/tcpdf.php @@ -7877,7 +7877,7 @@ class TCPDF { $img = new Imagick(); $img->readImage($file); // clone image object - $imga = $img->clone(); + $imga = @$img->clone(); // extract alpha channel $img->separateImageChannel(8); // 8 = (imagick::CHANNEL_ALPHA | imagick::CHANNEL_OPACITY | imagick::CHANNEL_MATTE); $img->negateImage(true); |