{"id":8101,"date":"2019-10-28T17:49:04","date_gmt":"2019-10-28T21:49:04","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=8101"},"modified":"2021-12-08T10:52:46","modified_gmt":"2021-12-08T15:52:46","slug":"imagick-php-extension","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/imagick-php-extension\/","title":{"rendered":"How to Properly Install the Imagick PHP extension in Windows"},"content":{"rendered":"\n

There might arise the occasion where you hit a roadblock when trying to install the Imagick PHP extension on Windows. When all is done there are times when even though there was no error reported, this extension does not work as expected.<\/span><\/p>\n\n\n\n

The Imagick PHP extension allows developers to use the features of the ImageMagick, the suite for displaying, converting, and editing raster image and vector image files directly in your PHP<\/a> code.<\/span><\/p>\n\n\n\n

Before you install this graphics extension you need to know what PHP version you are currently using by running the following commands in CMD or Powershell terminal.<\/span><\/p>\n\n\n\n

Type this to determine the PHP version:<\/span><\/p>\n\n\n\n

php -i|find "PHP Version"<\/code><\/pre>\n\n\n\n

Next, you need to determine the thread-safety, where, ‘enabled<\/strong>‘ means you are using a thread-safe version and ‘disabled<\/strong>‘ means you are using a non-thread-safe version:<\/span><\/p>\n\n\n\n

php -i|find "Thread Safety"<\/code><\/pre>\n\n\n\n

Finally, you need to determine the architecture, where, x86<\/strong> means you are using the 32bits version and x64<\/strong> for the 64bit version:<\/span><\/p>\n\n\n\n

php -i|find "Architecture"<\/code><\/pre>\n\n\n\n

Once you are armed with the above information, it’s time to go to the PECL website to get the official Imagick PHP extension download file.<\/span><\/p>\n\n\n\n

 Visit this release page<\/a> and navigate to the latest version (currently 3.4.4). <\/span><\/p>\n\n\n\n

Note: If you are using PHP versions earlier than 7.0 you have no option but to download version 3.4.3.<\/em><\/p>\n\n\n\n

Whichever version number you go with you’ve got to download the right file. The file name will give you a hint as to which file you need to download for your particular setup.<\/span><\/p>\n\n\n\n

The file name is in the following format. Take for instance this file name php_imagick-3.4.4-7.3-ts-vc15-x64.zip<\/strong>. This is how it is broken down:<\/span><\/p>\n\n\n\n