Guide to Getting Imagick working on XAMPP for Windows

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Guide to Getting Imagick working on XAMPP for Windows

Postby waywardspooky » 16. February 2009 16:59

I spent the better part of two weeks trying to get Imagick working with Xampp on Windows XP and ran into problem after problem. I finally found the solution and felt it was important to post what worked for me here on the Xampp forums because there seemed to be a lack of information regarding Imagick. So, here's what worked for me.

First you'd download the newest binary release of Image Magick from http://www.imagemagick.org/script/binary-releases.php#windows. The typical version you'd want to snag will end with Q16-windows-dll.exe. For example, the version I downloaded was ImageMagick-6.4.9-4-Q16-windows-dll.exe. Install Image Magick. Where you install Image Magick isn't important, although I would recommend installing it in your Xampp directory. For example <wherever you installed Xampp>/ImageMagick. This way if you need to take your Xampp server with you on a portable drive or flash drive, any code you write which relies on Image Magick and Imagick will still work.

Then you'll want to go download Imagick, which is the middle-man between Image Magick and PHP, from http://valokuva.org/?page_id=50. You should download the php_imagick_dyn-Q16.dll if you downloaded the Q16-windows-dll version of Image Magick that I mentioned above. You need to put the php_imagick_dyn-Q16.dll file in the following directory: <wherever you installed Xampp>/php/ext.

Next you will want to edit your php.ini. If you don't know where to find this file it should be <wherever you installed Xampp>/apache/bin. Once you've opened up php.ini you will want to find a line that says extension=php_imagick.dll and comment it out if it isn't already. When commented out it should look like ;extension=php_imagick.dll. Then you'll want to add extension=php_imagick_dyn-Q16.dll just below that. So it should look like:

Code: Select all
;extension=php_imagick.dll
extension=php_imagick_dyn-Q16.dll


Ok, so now, here's the last and final step, the fix which gets it everything working like it should. Download Microsoft Visual C++ 2008 Redistributable Package (x86) vcredist_x86.exe from http://www.microsoft.com/downloads/deta ... laylang=en. Download vcredist_x86.exe and install it.

:o Hopefully this post helps someone else out that is having problems trying to get Imagick working with Xampp on Windows XP. I got the general instructions and tips on how to get all this working from the following sources.

http://thinktibits.blogspot.com/2008/09/installing-imagemagick-on-windows-setup.html#
and
http://valokuva.org/?page_id=50 more specifically http://valokuva.org/?page_id=50#comment-9248
waywardspooky
 
Posts: 1
Joined: 16. February 2009 16:16

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby @gpapayiannis » 07. April 2009 16:05

Thanks for posting this, it really helped. One thing though, it wasn't working for me till I added the Image Magick home directory to the PATH and created a MAGICK_HOME system property with the same location.
@gpapayiannis
 
Posts: 1
Joined: 07. April 2009 15:59

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby ameisez » 25. April 2009 11:09

some of your instruction said "then you'll want" does it mean it is not mandatory?

is there any step by step (must do)?

I download imagemagick 6.5.1.3 zip format and unzip it on my xampp folder but when I install phpbb it can't detect imagemagick

any idea?
ameisez
 
Posts: 8
Joined: 25. April 2009 09:18
Operating System: Windows 7, Windows XP

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby iguana007 » 04. January 2010 10:17

Does anyone have a link to file: php_imagick_dyn-Q16.dll ??
It seems, that it is not available anymore on the website: http://valokuva.org/?page_id=50

Thank You for help

Luke
iguana007
 
Posts: 7
Joined: 21. March 2008 10:47

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby Izzy » 04. January 2010 10:28

Last edited by Izzy on 04. January 2010 10:48, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby iguana007 » 04. January 2010 10:47

iguana007
 
Posts: 7
Joined: 21. March 2008 10:47

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby Izzy » 04. January 2010 10:51

I was editing while you were posting - snap! :D
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby iguana007 » 04. January 2010 10:55

Izzy: :D
OK, I followed whole guide, but at the moment i restart Apache, I get an error in error.log and Image magick is not working :(

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_imagick_dyn-Q16.dll' - Module not found\r\n in Unknown on line 0

Any ideas what could be wrong?

Luke
iguana007
 
Posts: 7
Joined: 21. March 2008 10:47

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby iguana007 » 04. January 2010 11:27

SOLVED:

I restarted computer and it started working. So probably Apache restart is not enough.

Luke
iguana007
 
Posts: 7
Joined: 21. March 2008 10:47

SOLVED:Re: Guide to Getting Imagick working on XAMPP for Win

Postby MMue » 23. May 2010 22:55

Hi!

I'm a bit confused about the different versions as this thread started more than one year ago.

  • I have now xampp 1.7.3 with Apache/2.2.14 and PHP/5.3.1
  • I followed waywardspooky's instructions and downloaded and installed ImageMagick 6.6.1-10-Q16-windows-dll.exe into the folder xampp\imagemagick
  • Then I looked for the imagick.dll, but here the confusion begins:

At http://valokuva.org/builds/
you get dlls compiled with VC 9 against PHP 5.3.3-dev -- which should only be used for IIS (according to http://windows.php.net/download )

At http://www.sk89q.com/2010/03/vc6-window ... ick-2-3-0/
you get dlls compiled with VC 6 against PHP 5.3.2 -- for use with Apache

Where can I find a dll compiled with VC6 for apache against the PHP 5.3.1 version of my XAMPP 1.7.3.
Or can I use one of the versions mentioned above. And if yes, which one?

Has anyone experience with these versions?? I hope for your help...

CU Martin


Edit (a few minutes later...)

ARGHH! Just a bit too confusing:

  • valokuva.org VC9 TS DLL
  • valokuva.org VC9 NTS DLL
  • sk89q.com VC6 TS DLL
  • sk89q.com VC6 NTS DLL

Seems I used the wrong DLL. As of May 2010, XAMPP 1.7.3 for Windows you need the VC6 thread-safe (TS) compiled DLL.
(I don't know how it worked for you with the DLLs from valokuva.org, but, well, that was 15 months ago.)

I was so sure I already tested it, but when I looked again at the DLL dependencies I found my error.
MMue
 
Posts: 2
Joined: 23. May 2010 21:57

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby systck » 04. June 2010 07:09

Seems I used the wrong DLL. As of May 2010, XAMPP 1.7.3 for Windows you need the VC6 thread-safe (TS) compiled DLL.
(I don't know how it worked for you with the DLLs from valokuva.org, but, well, that was 15 months ago.)

I was so sure I already tested it, but when I looked again at the DLL dependencies I found my error.



Did you get this working? I've installed ImageMagick 6.6.1-10-Q16 and the sk89q.com VC6 TS DLL.
But when I try to execute some script based on Imagick even via the cli, the command line crashes. So I'm assuming this is the wrong php_imagick.dll version. We have php 5.3.1 VC6. Is there any dll available for this version which works?
systck
 
Posts: 1
Joined: 04. June 2010 07:05

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby belonesox » 12. October 2010 10:16

Dear systck et al,
did you solve the problem (PHP5.3/VC6+ php_imagick + Imagick)?

I have the same problem:
Code: Select all
Did you get this working? I've installed ImageMagick 6.6.1-10-Q16 and the sk89q.com VC6 TS DLL.
But when I try to execute some script based on Imagick even via the cli, the command line crashes. So I'm assuming this is the wrong php_imagick.dll version. We have php 5.3.1 VC6. Is there any dll available for this version which works?


Thanks all in advance...
belonesox
 
Posts: 1
Joined: 12. October 2010 10:10

Re: Guide to Getting Imagick working on XAMPP for Windows

Postby JonB » 12. October 2010 19:04

Look at this thread -

viewtopic.php?f=16&t=40825


Good Luck
:)

ysfm
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 110 guests