Topic: php-imagick 3.4.3 setImageAlpha function problem
Hi!
I have SentOS 7 LEMP system with php 7.1.
I using php-imagick module from REMI. All was fine untill it updates to 3.4.4 version. In this version function imagick::setImageOpacity was marked as deprecated and warning messages start to appear in my site project. I tried to replace it with new one setImageAlpha but it do not work. Here is test script:
<?php
$imagick = new \Imagick();
var_dump(method_exists($imagick, 'setImageAlpha'));
echo ('<br />');
var_dump(method_exists($imagick, 'setImageOpacity'));
echo ('<br />');
And there is the result:
bool(false)
bool(true)
I have downgrade php-imagick to 3.4.3 version. Messages disappeared but script still not work with setImageAlpha.
I have tried to install ImageMagick from BASE repo version 6.7.8.9 and tried to install ImageMagick6 6.9.10.46 from REMI but it was given no results.
How should I correctly set up imagick with REMI and do not afraid problems during update ???