Hello,
The latest build for PHP 5.3/5.4 is currently here.
The installation steps should be somewhat like the following:
1. Download php_imagick_(ts|nts).dll from here and put it into your extension_dir. ts means thread-safe and nts is non-thread-safe. The latter is usually used with FastCGI.
2. Add the ImageMagick binary folder into your PATH
3. Restart just in case
4. Voila! You should now see imagick in phpinfo.
Obsolete builds: http://valokuva.org/magick
#1 by Craig Marvelley on February 14, 2012 - 12:51 pm
Quote
After some dependency debugging it seems I’m missing some DLLs, looks like I’ll have to compile it myself
#2 by Paul on February 24, 2012 - 3:41 pm
Quote
Having problems installing on – Windows 7 (Service Pack 1) / IIS 7.5 / PHP 5.3.10 Non-thread-safe for PHP on Windows FastCGI. As far as I know all relevant parts are VC9. I’ve installed ImageMagick 6.6.2-10 2010-06-29 Q16 as per this comment http://valokuva.org/?page_id=50#comment-22560
I can run OK via CMD prompt but can’t run via script using EXEC(conver…) or iMagick.
Any help would be great
My phpInfo() doesn’t show Module Version which I think might be a sign of the problem. I’ve been stuck for hours
imagick module version @PACKAGE_VERSION@
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.6.2-10 2010-06-29 Q16
ImageMagick release date 2010-06-29
#3 by vernes on February 27, 2012 - 3:00 pm
Quote
Apache 2.2.17
PHP5.3.5 (vc9)
php_imagemagick_ts (25-04-2011)
having imagemagick read a file (realpath or not) cause apache to crash:
Faulting application name: httpd.exe, version: 2.2.17.0, time stamp: 0x4cbbe9e8
Faulting module name: MSVCR100.dll, version: 10.0.30319.1, time stamp: 0x4ba1dbbe
Exception code: 0xc0000417
Fault offset: 0x0008ae6e
Faulting process id: 0x25c8
Faulting application start time: 0x01ccf54519c74ced
Faulting application path: C:\wamp\bin\apache\apache2.2.17\bin\httpd.exe
Faulting module path: C:\Program Files (x86)\ImageMagick-6.7.5-Q16\MSVCR100.dll
Report Id: 0cb46a70-6139-11e1-9df1-0009dd508eaa
#4 by RafaARV on March 1, 2012 - 8:59 pm
Quote
Just did it! Compiled imagick 3.1.0 RC1 with ImageMagick-6.7.5-Q16 and GhostScript 9.05. This for PHP 5.3.10 (current version today March 1st 2012) compiled under VC9 x86 (for example, WAMP systems).
Tested with Apache 2.2.21 and 2.2.9.
I’m happy because IT WORKS
#5 by Kelvin on March 3, 2012 - 6:21 pm
Quote
Thank you Peter Robot! I had the connection reset issue until is used realpath()…
#6 by Cappy on March 5, 2012 - 10:24 pm
Quote
Getting Apache crash.
Running:
Apache 2.4 VC9 32-bit
PHP 5.3.10 VC9 thread-safe 32-bit
ImageMagick 6.7.5-10 2012-03-04 Q16
2010-11-11 php_imagick_ts.dll
Shows up fine in phpinfo().
$im = new Imagick(); // works fine
$im = new Imagick(“file.png”); // Apache crashes
Any ideas?
#7 by Ross on March 6, 2012 - 11:24 am
Quote
Hey Cappy,
Installing this version of Imagick fixed the problem for me.
http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.6.2-10-Q16-windows-dll.exe
Hope it helps.
#8 by Aleš on March 9, 2012 - 3:33 am
Quote
Hi Mikko & others,
are you going to release PHP 5.4 builds?
Thanks!
#9 by David on March 12, 2012 - 4:03 am
Quote
Thanks @Ross. I was also getting a crash from the above and then used your link to get that version of Imagick and it worked.
Thanks for help.
Up and running!
#10 by Jean-Guillaume L'hélias on March 13, 2012 - 11:23 pm
Quote
@Aleš:
I would like to share my build of php_imagick.dll for php 5.4.
For all this may interest you can temporarily download at http://www.peewit.fr/imagick/.
#11 by Manuel Boissiere on March 26, 2012 - 1:46 am
Quote
Merci pour la version PHP5.4 , j’apprecie.
Many thanks for doing the PHP 5.4 version
#12 by Abhinav on March 26, 2012 - 9:24 am
Quote
Hello,
I just download 2010-11-11 16:36 – php_imagick_ts.dll for my windows machine and save it in php/ext/ folder. I have PHP 5.3.8 version install on my PC. After saving DLL file i added it into php.ini file and restart my XAMPP server (V- 1.7.7). But XAMPP will not start, after commenting this line extension=php_imagick_ts.dll
from php.ini, XAMPP server started properly. Can you please tell me, where i made mistake?
Thanks
#13 by Utkarsh on March 28, 2012 - 5:04 pm
Quote
Hi
i am using virtual dedicated server and the configuration is windows server 2008 R2 standered edition. I recently upgraded it to PHP version 5.3.10(thread Safe version). I Installed PHP ImageMagick version /ImageMagick-6.6.3-0-Q16-windows-dll.exe by following the steps given at http://gary-greendale.blogspot.in/2011/01/install-php-imagemagick-and-imagick-for.html
I got my php ImageMAgick working finally(after nth attempts) using command prompt. but now i am tryin to use php_imagick.dll to load iMagick Library with PHP.
After thousands of efforts and lots of dll files replaced (tried many versions)
http://valokuva.org/builds/
http://valokuva.org/builds/ext/vc9/nts/imagick/2011-04-25_1849/
http://valokuva.org/builds/ext/vc9/ts/imagick/2011-04-25_1849/
and many other thread and non thread safe versions. Please suggest me the correct version of the php_imagick.dll so that i can get it running on my server.
I am sure the issue is related to php_imagick.dll’s version.
Please let me know if i need to recompile imagick binaries (Steps on mac is appriciated)
Its kinda urgent now help please
#14 by Ankit Kesharwani on March 30, 2012 - 11:54 am
Quote
I am having PHP 5.3.6 version on my PC. I have installed “ImageMagick-6.7.6-2-Q16-windows-dll.exe” on my PC and then download the “php_imagick.dll” file and drop it under the PHP/ext folder.After that edit my php.ini file and add new extension”
“extension=php_imagick.dll”
then restart my PC.
After that when i checked php version, phpunit version then it gives me error. and Nothing will work.
Please let me know whats going wrong here.
Thanks
#15 by Utkarsh on March 30, 2012 - 3:48 pm
Quote
Hi
i am using virtual dedicated server and the configuration is windows server 2008 R2 standered edition. I recently upgraded it to PHP version 5.3.10(thread Safe version). I Installed PHP ImageMagick version /ImageMagick-6.6.3-0-Q16-windows-dll.exe by following the steps given at http+://gary-greendale.blogspot.in/2011/01/install-php-imagemagick-and-imagick-for.html
I got my php ImageMAgick working finally(after nth attempts) using command prompt. but now i am tryin to use php_imagick.dll to load iMagick Library with PHP.
After thousands of efforts and lots of dll files replaced (tried many versions)
http:+//valokuva.org/builds/
http:+//valokuva.org/builds/ext/vc9/nts/imagick/2011-04-25_1849/
http+://valokuva.org/builds/ext/vc9/ts/imagick/2011-04-25_1849/
and many other thread and non thread safe versions. Please suggest me the correct version of the php_imagick.dll so that i can get it running on my server.
I am sure the issue is related to php_imagick.dll’s version.
Please let me know if i need to recompile imagick binaries (Steps on mac is appriciated)
Its kinda urgent now help please
#16 by Marian on April 5, 2012 - 2:21 am
Quote
Nop not working.
Warning: PHP Startup: Unable to load dynamic library ‘c:\Program Files (x86)\php5.3\ext\php_imagick.dll’ – The specified module could not be found.
#17 by Marian on April 5, 2012 - 2:33 am
Quote
The bove was with ZTS.
With NTS I get this error:
Warning: PHP Startup: Unable to load dynamic library ‘c:\Program Files (x86)\php5.3\ext\php_imagick.dll’ – %1 is not a valid Win32 application.
#18 by Thomas Kirby on April 5, 2012 - 8:45 pm
Quote
tried every combination of windows binaries and php_imagick.dll files. all crash. So Imagick is an unsupported software package that does not work? Not for use in mission-critical applications. Toys for kids and wannabe hackers?
#19 by Mikko on April 5, 2012 - 8:59 pm
Quote
Thomas,
Just windows is unsupported. I have no interest for paying for licences to provide binaries for open source software.
– mikko
#20 by Thomas Kirby on April 5, 2012 - 9:08 pm
Quote
Not your fault (unless you wrote/released imagick windows binaries without releasing the php dlls). So, what’s the final solution? Looks like the only way to make this work is to compile the source code myself. Would you agree?
#21 by Mika Kivistö on April 8, 2012 - 8:56 am
Quote
Hi!
I had ImageMagick 6.6.3-9 2010-08-22 Q16 running fine on my Win 2003 server with Apache 2.20 and PHP 5.xx, but on my new virtualized Win 2008 server the same ImageMagick, or some never-ones work, but awfully slow. Same PDF takes about 30 seconds to convert to thumb-image, as on my earlier server the same on took about 5 secs.! Is there anything to be done? I read in google, that the openmp-support might be the problem on virtualized servers, but how to get a non-openmp package on windows? Or is the performance issue something else? Thanks!
#22 by John on April 10, 2012 - 12:29 pm
Quote
I have tried your binaries both nts and ts with PHP 5.3.10 and imagemagick 6.7.5-10 as well as 6.7.6-5 on windows.
In all cases, even if the dll is placed in the correct directory, the following error would occur:
PHP Warning: PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.10/ext/php_imagick_ts.dll’ – The specified module could not be found.
in Unknown on line 0
Any idea why this is happening? The php_imagick_ts.dll file exists in that location.
#23 by og on April 15, 2012 - 1:27 am
Quote
speical VC6 PAI release…
http://www.sk89q.com/downloads/imagick/2.3.0/API20090626-TS-VC6/php_imagick.dll
#24 by soiitiaire on May 8, 2012 - 6:23 am
Quote
damn good, finally I could use that…
#25 by alex on May 15, 2012 - 1:27 am
Quote
thank you for the links – using the 6.6.2 version (http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.6.2-10-Q16-windows-dll.exe) solved my issues (extension loaded but crash when creating image using imagick ctor in php)
will you provide php5.4 builds? or could you briefly explain how to build our own? thanks!
#26 by Kamran on June 12, 2012 - 6:26 pm
Quote
My OS is Win7 x64. I installed ImageMagick-6.7.7-7-Q16-windows-x64-dll.exe (Win64 dynamic at 16 bits-per-pixel) and added extention php_imagick_ts.dll. But when apache restarts I get error:
“Unable to load dynamic library ‘d:/wamp/bin/php/php5.3.4/ext/php_imagick_ts.dll’ – %1 is not a valid Win32 application.”
#27 by keith on July 5, 2012 - 1:17 am
Quote
Hi,
I have tried this setup on our server we are running
win 2008 x64 r2 version
php 5.3.10 nts. I have installed various versions of image magick, i currently have 6.6.2.q16 installed, and I have the latest php_imagick.dll, but the imagic fails to load in iis when running a phpinfo from a test page, any ideas ?
#28 by Thomas Kirby on July 7, 2012 - 6:49 am
Quote
“module could not be found” error can also mean the module dependencies cannot be found. dependency walker will give us a clue here.
#29 by Thomas Kirby on July 7, 2012 - 6:56 am
Quote
meanwhile, back in TOY land… if i downgrade to years-old versions of php, imagemagick and imagick, it will work. nice.
current versions are ImageMagick 6.7.8 and PHP 5.3.14 and i would like to run them, please. Yes, people do run these things on Windows boxes. I don’t like windows either, but last time i checked there is no Microsoft Office for Linux. Hello? How many machines do I need? What about the REAL world, gurus?
#30 by Fuzzy on September 9, 2012 - 12:20 am
Quote
Xampp 1.8.0
PHP 5.4.4 / Apache 2.4
ImageMagick 6.6.2-10 Q16
Compiler MSVC9 (Visual C++ 2008) (did that mean VC9?)
Took the thread-save dll but it doesnt work (no error in the log, not shown in php_info(), already added to the php.ini)
Anyone has an idea?
#31 by yon on October 3, 2012 - 12:37 pm
Quote
anybody have php ImageMagick for php5.4.7 NTS ? x86 and x64 .
#32 by Eddie Boot on October 10, 2012 - 5:35 am
Quote
Hello,
I read this and many other tutorials on the web for setting up Image Magick. I needed to be able to convert the first page of a PDF file into an image. To do this, the “preferred” method from everything I read was to use imagick in PHP. Beyond this, there is a handful of other things I kind of “need” from PHP PEAR on my projects. I gave in and setup PEAR (I haven’t used pear in years because I found it a terrible addon for PHP). But I gave in and thought I was just being stubborn about using it. I tried setting up PEAR with the imagick plugin. On a GoDaddy shared server, PHP PEAR refused to install this plugin for about a zillion different reasons.
But I had access to a dedicated windows server, very fancy machine. I followed tutorials like this (along with a few others on the web), installing the plugin on the dedicated machine, adding the dynamic link library in the php extensions folder, and adding the extension to the php.ini configuration. When I did this, all of my websites got a 500 error.
Bottom line of all this – imagick is garbage. At this point after having spend 40+ hours trying to use this, I don’t care how good/useful the plugin is. I’ve wasted far too many hours reading and pulling my hair out over something that should take 5 minutes to set up. This is a bad mark in the PHP language for me, which I have been programming in for seven years now.
#33 by Victor on October 11, 2012 - 4:50 pm
Quote
Nay.
Windows Server is garbage, and so is Microsoft’s licensing policy.
Alas, just for my 50 cents, I’m “West side”..
#34 by Cesar on October 18, 2012 - 3:50 am
Quote
Hi, i’m looking for extensions of php_imagick.dll that works with this:
AppServ 2.5.10
Apache 2.2.8
PHP 5.2.6
Windows Server 2008 x64
do you have some?
#35 by Sachin on October 23, 2012 - 4:29 pm
Quote
Thanks for php_imagick.dll for Php 5.4x version
#36 by RokX on October 26, 2012 - 1:38 am
Quote
Apache 2.4
PHP 5.4.8
Look at comment #5:
#5 by Jean-Guillaume L’hélias on March 13, 2012 – 11:23 pm
@Aleš:
I would like to share my build of php_imagick.dll for php 5.4.
For all this may interest you can temporarily download at http://www.peewit.fr/imagick/.
THANK YOU !!
#37 by FDI on November 22, 2012 - 5:50 pm
Quote
@Rokx
you rock, rocks.
#38 by decho on November 24, 2012 - 1:36 pm
Quote
Hi,
I have this instalation like comment #24:
Windows NT HOME-CD 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7
Compiler MSVC9 (Visual C++ 2008)
May be dll file is a problem for me, i have build ImageMagick 6.8.0-6 2012-11-20 Q16.
I tried several dll files, but still is a error ” Call to undefined function Imagick()…”
Any idea who build and dll files get it?
Thanks.
#39 by priyank on January 17, 2013 - 3:43 pm
Quote
Hey finally i got solution here .. \m/
Thanks Cappy and og for your valuable imagemagick.exe and php dll respectively.
Cheers
#40 by dani on February 15, 2013 - 12:18 pm
Quote
Thanks #36 RokX http://www.peewit.fr/imagick/ your version worked.
After 2 weeks of struggle, finally!
#41 by jungun on February 22, 2013 - 5:45 am
Quote
In joomla, when I run my website, it show this message. I don’t solution yet.
Warning: PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.8/ext/php_gd2.dll’ – c:/wamp/bin/php/php5.3.8/ext/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
#42 by shakthi on March 27, 2013 - 1:12 pm
Quote
kindly produce and give the link about the documentation of imagemagick installation and pdf preview.
#43 by tamlerm on May 3, 2013 - 10:34 am
Quote
Hi there, any idea to get the imagick.dll running under
IIS7
PHP 5.4.14
ImageMagick 6.8.5
I have tried all of the DLL’s but no one works. It will not be shown in phpinfo()…
Greets