Imagick::clone method is deprecated
mattiak14 opened this issue · comments
Hello,
since i updated octobercms to the latest version with php7 in generating the pdf it comes out this error:
Imagick::clone method is deprecated and it's use should be avoided
the problem occurs when there is a picture
are there any solutions please?
thank you so much
Hi,
Im' solved with this
in file dynamicpdf\vendor\dompdf\dompdf\lib\Cpdf.php line 4867
original: $alpha_channel = $imagickClonable ? clone $imagick : $imagick->clone();
modified: $alpha_channel = clone $imagick;
work for me
bye
DOMPDF issue: dompdf/dompdf#1296
Hi,
Im' solved with this
in file dynamicpdf\vendor\dompdf\dompdf\lib\Cpdf.php line 4867
original: $alpha_channel = $imagickClonable ? clone $imagick : $imagick->clone();
modified: $alpha_channel = clone $imagick;work for me
bye
Thanks Its Works for me ;)
wow that work, but this in vendor folder.