Skip to content

Instantly share code, notes, and snippets.

@juyal-ahmed
Last active February 11, 2024 01:52
Show Gist options
  • Save juyal-ahmed/326d1df3d9a260fc3bdf to your computer and use it in GitHub Desktop.
Save juyal-ahmed/326d1df3d9a260fc3bdf to your computer and use it in GitHub Desktop.
Installing and Configuring ImageMagick on Xampp

#Steps to Install

  1. Download and Install ImageMagick http://imagemagick.org/script/binary-releases.php#windows
  2. Visit ImageMagic installation directory and module/coders copy all files and past on D:\xampp\apache\bin
  3. Download Binary https://pecl.php.net/package/imagick/3.4.0RC5/windows php 5.6 TS one according to phpinfo Architecture if it is x86/x64
  4. Exatract and copy php_imagick.dll to D:\xampp\php\ext
  5. Add php_imagick.dll on php.ini
  6. Copy 8 CORE_*.dll to D:\xampp\apache\bin
  7. Restart Apache
  8. done and visit phpinfo

Note: If you see in phpinfo imagick extension settings something like: ImageMagick number of supported formats: then Visit ImageMagick installation directory again like: C:\ImageMagick-6.9.3-Q16\modules\coders and copy all *.dll and past them to apache/bin

@ikunyemingor
Copy link

Thanks

@santhu342
Copy link

Not working in PHP Version 7.4.6.

i am using XAMPP v3.2.4 . install (ImageMagick-7.0.7-11-vc15-x64 ) ( php_imagick-3.4.4-7.4-ts-vc15-x64 ) and ( ImageMagick-7.0.10-28-Q16-HDRI-x64-dll )

but not activate ImageMagick .

any one can help me how to install in my sysytem

@vonsogt
Copy link

vonsogt commented Nov 18, 2020

Not working in PHP Version 7.4.6.

i am using XAMPP v3.2.4 . install (ImageMagick-7.0.7-11-vc15-x64 ) ( php_imagick-3.4.4-7.4-ts-vc15-x64 ) and ( ImageMagick-7.0.10-28-Q16-HDRI-x64-dll )

but not activate ImageMagick .

any one can help me how to install in my sysytem

Hope this video can solve your problem :)
https://www.youtube.com/watch?v=qZ9_rq6c9uY

@cellandbell3
Copy link

PHP Startup: Unable to load dynamic library 'php_imagick' (tried: C:\xampp\php\ext\php_imagick (The specif
ied module could not be found.), C:\xampp\php\ext\php_php_imagick.dll (The specified module could not be found.)) i
n Unknown on line 0

Using php7.4 64 bit

@mcbovice
Copy link

PHP Startup: Unable to load dynamic library 'php_imagick' (tried: C:\xampp\php\ext\php_imagick (The specif
ied module could not be found.), C:\xampp\php\ext\php_php_imagick.dll (The specified module could not be found.)) i
n Unknown on line 0

Using php7.4 64 bit

In your php.ini, you need to have extension=imagick and not extension=php_imagick

@cellandbell3
Copy link

@mcbovice
thanks it working but I am getting warring message twice


PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: C:\xampp\php\ext\imagick (The specified module could not be found.), C:\xampp\php\ext\php_imagick.dll (The specified module could not be found.)) in Unknown
on line 0

Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: C:\xampp\php\ext\imagick (The specified module could not be found.), C:\xampp\php\ext\php_imagick.dll (The specified module could not be found.)) in Unknown on l
ine 0

@mcbovice
Copy link

@mcbovice
thanks it working but I am getting warring message twice

PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: C:\xampp\php\ext\imagick (The specified module could not be found.), C:\xampp\php\ext\php_imagick.dll (The specified module could not be found.)) in Unknown
on line 0

Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: C:\xampp\php\ext\imagick (The specified module could not be found.), C:\xampp\php\ext\php_imagick.dll (The specified module could not be found.)) in Unknown on l
ine 0

Did you make sure you put php_imagick.dll in C:\xampp\php\ext folder?

@cellandbell3
Copy link

cellandbell3 commented Jul 12, 2021

@mcbovice yes dear
php_imagick.dll in C:\xampp\php\ext exists

@elnath78
Copy link

elnath78 commented Jun 24, 2023

Can I just copy the IM_MOD_RL_jpeg_.dll since I will only use JPG files? Should I rename it into php_imagick.dll like I read in some guide?

@Maxime66410
Copy link

PHP Warning: PHP Startup: imagick: Unable to initialize module\nModule compiled with module API=20210902\nPHP compiled with module API=20220829\nThese options need to match\n in Unknown on line 0

PHP Version : 8.2.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment