I have to convert pdf to image format (jpg or png) for a thesis project and was planning to install the imagick library on xampp which proved to be tricky. By the way, the php version that I currently have is PHP 7.4.3.
I based the steps in installing imagick through this link: https://ourcodeworld.com/articles/read/349/how-to-install-and-enable-the-imagick-extension-in-xampp-for-windows

Installed imageMagick (ImageMagick-7.0.10-0-Q16-x64-dll.exe )on my Windows 10 pc (upon checking with the
magick -versionand was able to display the imageMagick version installed on the pc.)Added php_imagick.dll to xampp/php/ext which I got from PHP PECL website. 3.4.4 stable 2019-05-02 imagick-3.4.4.tgz (247.5kB) DLL
Enabled the extension on php.ini file through extension=imagick
Added the binaries which I got from PECL DEPS (IMO and CORE .dlls).
11/23/2017 3:58 PM 47633113 ImageMagick-7.0.7-11-vc15-x64.zip
Upon running phpinfo() it displayed the following items:
I decided to test the library using the code
<?php $image = new Imagick(); $image->newImage(1, 1, new ImagickPixel('#ffffff')); $image->setImageFormat('png'); $pngData = $image->getImagesBlob(); echo strpos($pngData, "\x89PNG\r\n\x1a\n") === 0 ? 'Ok' : 'Failed'; ?>but web page is blank.I tried adding the xampp/apache/bin to PATH in Windows to fix the problem but the problem is still there. In addition, this what php intelephense (extension in vscode) produced:
Is there anyone out there who can give any advice on how to make this work?
