Installing imagemagick on WAMP?
Posted by: suchehilfe (---.2.7.85.dynamic.wline.res.cust.swisscom.ch)
Date: May 16, 2021 08:52PM

Hi

Im using WAMP for my WordPress website. WP regularly informs me about necessary updates and security issues. Now WordPress informs me, that a specific PHP-module isnt installed or running: imagick (imagemagick).

I searched the internet for solutions. But whatever I tried, failed. Found a plugin, but after the installation, WAMP and WP crashed. No help from imagemagic (support, forums) available.

I also found some informations on how to change informations in the WAMP php.ini file to make imagick work (at least I thought that this would be the easiest way):

adding "/usr/local/lib/php_modules/7-72STABLE" behind the extension_dir line and adding this at the end of php.ini:

[Imagick]

extension = "imagick.so"

But this instruction didnt help either. Im an oldie and normally only use my computer to write letters in Word, or Emails with Outlook, and add content to my WordPress-Website.

So I could actually need some help with this problem. Anyone an idea how to resolve this?


Forgot to mention: Im using PHP 7.4.9



Edited 1 time(s). Last edit at 05/16/2021 08:55PM by suchehilfe.

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: Otomatic (Moderator)
Date: May 17, 2021 09:39AM

Hello,

Made Imagick installation under PHP 7.3.27 64bit (Wampserver 64bit 3.2.5)
(I put the real names of the folders that I created)
So to modify according to your version of PHP 7.3 or 7.4 and the folders of installation of Wampserver.

Wampserver must be stopped.

- 0 - First you have to download the zip file containing all the files needed for Imagick.
It must be a TS (Thread Safe) version indicated by -ts- in the file name and correspond to your PHP version 7.1, 7.2, 7.3 or 7.4) as well as 32 or 64 bit.

The different zip files for Imagick 3.4.4 are on :
https://pecl.php.net/package/imagick/3.4.4/windows
For PHP 7.3 32 bit it will be the file :
- https://windows.php.net/downloads/pecl/releases/imagick/3.4.4/php_imagick-3.4.4-7.3-ts-vc15-x86.zip
For PHP 7.3 64 bit it will be the file :
- https://windows.php.net/downloads/pecl/releases/imagick/3.4.4/php_imagick-3.4.4-7.3-ts-vc15-x64.zip

-1- Unzip php_imagick-3.4.4-7.3-ts-vc15-x64.zip in a temporary folder, for example :
g:\imagick-3.4.4-7.3-ts-x64\

-2- Create a folder, for example e:\imagick\

-3- From the -1- folder, copy all the CORE_RL and IM_MOD_RL files into the -2- folder
-3.1- From the -1 folder, copy the file php_imagick.dll into the folder e:\wamp64\bin\php\php7.3.27\ext

-4- Windows Settings (Right-click on the Start menu then click on the wheel)
-4.1- System
-4.2- About
-4.3- Advanced system settings
-4.4- Environment variables
-4.5- System variables -> Path -> Edit
-4.6- New -> type "e:\imagick\" -> OK (Without quotes)
Note: Put the name of the folder -2- that you created.
-4.7- OK, OK then close the Settings page

-5- Edit the file E:\wamp64\bin\php\php7.3.27\phpForApache.ini
Under the line:
;extension=shmop
add
;extension=imagick
Save the modified file.

-6- Launch Wampserver

-7- Left-click Wampmanager icon -> PHP -> PHP Extensions -> imagick
to validate the extension that will be checked.
Check that there is no error in the php_error.log file

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 05/17/2021 10:41AM by Otomatic.

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: suchehilfe (---.2.7.85.dynamic.wline.res.cust.swisscom.ch)
Date: May 18, 2021 01:30AM

Thanks for your answer. It seems to be complicated (at least for someone like me). But I will try to install imagick following your instructions within the next few days.

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: dean1650 (---.hsd1.nh.comcast.net)
Date: March 12, 2022 09:24PM

Thank you so much for this. The install worked correctly, no errors. Thanks again

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: nteek06 (154.246.54.---)
Date: October 12, 2022 06:45PM

Hello


I followed the steps.. as indicated


the extension is displayed, but not recognized

I have errors!
a solution ?


image show problem !

[ibb.co]
[ibb.co]
[ibb.co]
[ibb.co]

Direct link

[i.ibb.co]
[i.ibb.co]
[i.ibb.co]
[i.ibb.co]

please help me

thank you :!

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: RiggsFolly (Moderator)
Date: October 12, 2022 07:01PM

Did you install the ACTUAL Image Magic tool. The extension is just a connector to the real thing, not the real thing itself.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 10/19/2022 08:48AM by RiggsFolly.

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: nteek06 (154.247.78.---)
Date: October 13, 2022 07:24PM

in fact, you have to choose the imagick version according to its php version!

php_imagick-3.6.0-7.3-ts-vc15-x86.rar

this file works for PHP7.3

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: shadowx.jb (194.228.224.---)
Date: October 19, 2022 08:20AM

I try to convert PDF to JPG but it gives me this error. I have installed Ghostscript, but apparently the path needs to be modified somewhere... can you please advise me?

'FailedToExecuteCommand `"gs" -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dPrinted=false -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/Windows/TEMP/magick-3p13vOY9dDYfzlZb6TBkp6AktFDzu5TG%d" "-fC:/Windows/TEMP/magick-ls9lmF25J584EG6jqeay_E1rGsiBacIw" "-fC:/Windows/TEMP/magick-6BLqlkawoxdZVwGcA9fjY9n_QHLU1MWW"' (File not found.) @ error/delegate.c/ExternalDelegateCommand/516'



Edited 1 time(s). Last edit at 10/19/2022 08:48AM by RiggsFolly.

Options: ReplyQuote
Re: Installing imagemagick on WAMP?
Posted by: shadowx.jb (194.228.224.---)
Date: November 03, 2022 10:38AM

Solution:

C:\Program Files\gs\gs10.00.0\bin\gswin64.exe > copy > C:\Program Files\gs\gs10.00.0\bin\gs.exe


its works

Options: ReplyQuote


Sorry, only registered users may post in this forum.