Install Imagick di PHP XAMPP

Muhammad Fajar, 12-10-2023

Error:

BaconQrCode\Exception\RuntimeException

You need to install the imagick extension to use this back end


Solusi:

1- Pre-installation

  - PHP version

  - Architecture (64/86)

  - Thread Safety (enabled)

2- Download and install ImageMagick for Windows

   https://www.imagemagick.org/script/download.php#windows


3- Download Imagick for PHP

  https://pecl.php.net/package/imagick/3.7.0/windows

  - copy php_imagick.dll and pass into C:\xampp\php\ext

  - open php.ini (Dynamic Extensions)

    extension=php_imagick.dll


4- Download required Imagick binaries

  https://windows.php.net/downloads/pecl/deps/

  - copy all CORE_* and IM_MOD_* file and pass into C:\xampp\apache\bin


Referensi:

1. https://www.youtube.com/watch?v=fdHVMYxxKXQ
2. https://github.com/chunratha/Ratha-Project/blob/main/3-Install%20Imagick%20in%20Windows