I'm setting up a project on a Windows server and having an issue with ImageMagick. I'm from a Linux background and struggling to get it working.
I have downloaded from http://pecl.php.net/package/imagick
and installed into C:\Program Files\ImageMagick-7.1.0-Q8
. I then copied the file php_imagick.dll
into the ext folder in the PHP installation and added to php.ini. php -m
shows the module installed and I can generate a SVG image from PHP. However, now I need to include a PNG in a PDF I get the following error:
UnableToLoadModule 'C:\Program Files\ImageMagick-7.1.0-Q8\IM_MOD_RL_PNG_.dll': The specified procedure could not be found. @ error/module.c/OpenModule/1287
I can see the file exists in the folder so it's not that the file is missing but it's unable to load it for some reason.
Any ideas what the issue could be? Anything I can check?
PHP8.1 running as FastCGI in IIS if that matters.