Edit report at https://bugs.php.net/bug.php?id=80206&edit=1
ID: 80206
Updated by: cmb@php.net
Reported by: eric dot hamabata at gmail dot com
Summary: Call to undefined method Imagick::setImageAlpha()
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
Package: imagick
Operating System: Ubuntu 20.04
PHP Version: 7.4.11
Block user comment: N
Private report: N
New Comment:
Imagick::setImageAlpha() is only available when built against
ImageMagick 7. This needs to be documented.
Previous Comments:
------------------------------------------------------------------------
[2020-10-08 17:41:37] eric dot hamabata at gmail dot com
Description:
------------
Imagick 3.4.4
ImageMagick 6.9.10-23
PHP 7.4.3
When using setImageAlpha, since setImageOpacity is deprecated, I receiving an undefined method
error. Listing the methods of Imagick there really isnt a "setImageAlpha" method.
Test script:
---------------
$im = new Imagick();
$im->setImageAlpha(0.3);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80206&edit=1