Hello,
The new build page http://valokuva.org/magick
The installation steps should be somewhat like the following:
1. Install ImageMagick from http://imagemagick.org/script/binary-releases.php#windows. Choose Win32 dynamic at 16 bits-per-pixel. During the installation choose “Add to system path” or add the dir manually to your PATH.
2. Download php_imagick.dll from PHP 5.3 Windows builds and put it into your extension_dir. ts means thread-safe and nts is non-thread-safe. The latter is usually used with FastCGI.
3. Voila! You should now see imagick in phpinfo. If not, let me know.
#1 by Mikko Koppanen on September 16, 2009 - 7:05 pm
Quote
What php 5.4? there is no such a thing.
#2 by Brant on September 16, 2009 - 7:33 pm
Quote
I meant php 5.2.x OR basically the compilations before this last 5.3.0 one. All the php installs were compiled on VC6 at that time, so I don’t understand how people ever got this working on a php 5.2.x install
#3 by Ahmad Habibi on September 17, 2009 - 9:33 am
Quote
Can’t install IM & it’s extension
when I try to run “convert” command in cmd, convert.exr show me this error:
“The application was unable to start correctly (0×0150002). Click Ok to close the application.”
too, PHP can’t read extension, there is no any info about IM ext in phpinfo();
note 1: directory added to system PATH.
note 2: extension copied to same extension directory in php.ini declared.
#4 by Mikko Koppanen on September 17, 2009 - 11:59 pm
Quote
Brant,
the current builds will not work with PHP 5.2. The previous builds were done with VC7 and that caused random crashes here and there.
#5 by Mikko Koppanen on September 18, 2009 - 12:00 am
Quote
Ahmad,
fix the imagemagick installation first.
#6 by Ahmad Habibi on September 18, 2009 - 10:43 am
Quote
Mikko,
I have installed these versions:
ImageMagick-6.5.4-2-Q16-windows-dll.exe
ImageMagick-6.5.6-1-Q16-windows-dll.exe
but, I have same problem with both.
#7 by Mikko Koppanen on September 18, 2009 - 12:02 pm
Quote
Ahmad,
quoting ImageMagick installation page: “If you have any problems, install the Visual C++ 2008 Redistributable Package (x86) or Visual C++ 2008 Redistributable Package (x64). 64-bit Windows requires both packages (x86 & x64).”
See here: http://www.imagemagick.org/script/binary-releases.php#windows
#8 by Ahmad Habibi on September 18, 2009 - 6:41 pm
Quote
Thanks,
I’ll try this tonight.
thanks.
#9 by Yoke Lee on October 1, 2009 - 11:21 am
Quote
Hi Mikko
Newbie here is having problem with installation. Please save me. T T
Here’s what I’ve done:
1. installed ImageMagick-6.5.6-6-Q16-windows-dll.exe, tried the convert & display logo, no problem.
2. copied php_imagick_nts.dll & php_imagick_ts.dll to C:\xampp\php\ext\ (the extension_dir)
3. phpinfo stated: Apache Environment/PATH = C:\xampp\ImageMagick-6.5.6-Q16; … (is this the only place i would find imagemagick related info in phpinfo? coz i cant find anywhere else other than here)
4. added SetEnv MAGICK_HOME “C:/xampp/ImageMagick-6.5.6-Q16” to httpd.conf
5. opened the quote for extension=php_imagick.dll in php.ini
6. restarted computer
My problem:
running test3.php with this code on line 7: $im = new Imagick( “small.jpg” );
giving me error:
Fatal error: Class ‘Imagick’ not found in C:\xampp\htdocs\imagetest\test3.php on line 7
Where did I miss?
Tried to follow Mikhail (72) tutorial, I assume that the 6.5.6 doesn’t need additional config file?
Thank you very much for any help.
Yoke Lee (Ms)
#10 by Yoke Lee on October 1, 2009 - 12:20 pm
Quote
Hi
Just thought of something.
Is this because I’m using xampp?
It’s Apache 2 on Windows XP, PHP 5.2.8. *worry*
#11 by Adeel Shahid on October 13, 2009 - 1:26 am
Quote
Is there a link 2 download VC 6 compiled php_imagick.dll
any help appreciated.
#12 by ant0inep on October 30, 2009 - 5:55 pm
Quote
Hi,
I have installed Imagick on my server and tested it, but it return me :
Uncaught exception ‘ImagickException’ with message ‘Wand contains no images `MagickWand-2”
My code : $picture = new Imagick(“temp.jpg”);
What is the problem ?? (Scuse my language, but i am french)
Thanks
#13 by Hu on November 2, 2009 - 5:31 am
Quote
Hi, Mikko Koppanen
I installed XAMPP 1.7.2 , ImageMagick 6.5.7-3 and vc9 compiled php_imagick_ts.dll (3.0.0-dev) . When I start the Apache, I met the following Error:
//////////////////////////
PHP Startup : imagick: Unable to initialize module
Module compiled with build ID=API 20090626, TS, VC9
PHP compiled with build ID=API, TS, VC6
These options need to match.
//////////////////////////
After searching, I know the VC6 compiled php_imagick.dll is needed. Where can I get such a DLL? Thanks!
With best regards!
Hu
#14 by Mikko Koppanen on November 2, 2009 - 1:42 pm
Quote
Hello,
I don’t have VC6 compiler and you can not even buy one anymore. Either compile yourself, try to find by googling or use PHP compiled with VC9.
#15 by Mikko Koppanen on November 2, 2009 - 1:42 pm
Quote
ant0inep,
fixed in SVN.
#16 by Lee on November 12, 2009 - 9:38 pm
Quote
Still I am getting the same issue :
PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.0/ext/php_imagick_dyn-Q16.dll’ – The specified module could not be found.
Lee
http://www.ezeeforum.com/viewtopic.php?f=16&t=2861
#17 by Michael on November 17, 2009 - 10:58 am
Quote
Hi, will you provide an imagick build for imageMagick 6.5.7? It seems the latest available DLL (for 6.5.6) has some incompatibilities with the current imagemagick version because on my system the webserver crashed
Regards Michael
#18 by Mikko Koppanen on November 17, 2009 - 1:11 pm
Quote
Michael,
my new internet connection should arrive tomorrow (Wed). I’ll try to roll new builds as soon as I get internet connectivity at home.
#19 by Kaveh on November 21, 2009 - 11:02 am
Quote
Hi;
My system is:
winxp+iis+php5.2.5
-i have set imagemagick for windows on my laptop and its test from cmd is ok.
-also put php_imagick_nts.dll in c:\php\ext
and adding extension=php_imagick_nts.dll to php.ini
but can’t see the part of imagemagick on phpinfo()
appreciate to help.
kaveh
#20 by Mikko Koppanen on November 22, 2009 - 2:31 am
Quote
@Kaveh,
where did you install PHP and webserver from? Make sure that they are compiled with VC9 compiler.
#21 by Adeel Shahid on November 24, 2009 - 5:04 pm
Quote
non thread safe 5.3 extension only works with 5.3 built available on windows.
#22 by dfh on November 24, 2009 - 6:13 pm
Quote
Hi there. I still confusing with installing this.
I’m using zend for oracle product, but in my phpinfo() there is no imagick installed. How I install this imagick to integrate with php.
I’m still using PHP Version 5.2.5 for developing. Thanks for your answer.
(sorry for my bad lang, I’m from ID)
#23 by tarty on November 25, 2009 - 11:18 am
Quote
hi,
i got the same problem as ant0inep, and i don’t understand the answer :
”
ant0inep,
fixed in SVN.
”
any more information ?
#24 by edmund on November 25, 2009 - 1:29 pm
Quote
Anyone found the VC6 php_imagick.dll?
Seems like it’s the holy grail of Imagick php for windows…
#25 by Adeel Shahid on December 1, 2009 - 3:53 am
Quote
Just install 5.3 and configure imagick TS or NTS with it, don’t waste your time with earlier version of imagick or php
#26 by Masoom on December 1, 2009 - 7:08 am
Quote
I can see MAGICK_HOME c:/imagemagick in Apache Environment and in PHP Variables _SERVER["MAGICK_HOME"] but I unable to see any extension in php.ini if I add extension=php_imagemagick.dll it give me error
#27 by krishnaveni on December 3, 2009 - 8:34 am
Quote
how to install ImageMagick-6.5.4-6-Q16 in Linux, I installed in local host (windows) worked very well, please let me know what imagic.dll to use and how in Linux , I’m new to this
#28 by VADIM on December 3, 2009 - 6:51 pm
Quote
i have problem ”
php start up : imagick : unable to initialize module
Module compiled with module API= 20060613
PHP compiled with module API=20090626
Theseoption need to math
”
WIN XP WAMP pleas HELP!!!
#29 by Chriz on December 10, 2009 - 12:38 pm
Quote
Hey, I got it installed under Windows 7 (finally).
Here you find some installation instructions (German):
http://www.php.de/tutorials/62106-windows-apache-php-imagick.html
Thanks Mikko for your efforts in this project btw.
#30 by MrABC on December 14, 2009 - 12:57 pm
Quote
Hello, is it possible to have the static version of imagick?
i cant install imagemagick on the server. (Windows Server)
Because i dont have enough permission there :-/
thx for any answer.
have a nice day
#31 by Markus on December 16, 2009 - 11:10 am
Quote
Hey, can you maybe update the gmagick dll to the new 1.0.3b2. I get an exception with the current version and I think it’s a bug (the exception is “can’t load image”).
I tried to compile gmagick myself, but I have no idea how to do it…
Really appreciate your work!
#32 by Taihom on December 19, 2009 - 8:46 pm
Quote
Thank you for your guidance,
I try your methods on Windows 2008 + IIS7 + PHP5.3.x(FastCGI) ,it works very well.
but I try it on Windows 2008 + IIS7 + PHP5.2.x(FastCGI) ,it don’t work.
and I try it again on Windows 2008 + IIS7 + PHP5.2.x(ISAPI) ,oh! it works again.
so, can you build one php_imageick.dll support 5.2.x(FastCGI) ? let it can works on Non-thread-safe.
thanks very much!
#33 by Taihom on December 19, 2009 - 11:26 pm
Quote
HI Kaveh and tarty,
This err is a bug in the new 2.3.0rc1 release of imagick.
you can download 3.0.0dev release in this page http://valokuva.org/magick/
#34 by Taihom on December 19, 2009 - 11:38 pm
Quote
HI Kaveh and tarty,
by the way,you must give permission to this user(NETWORK SERVICE) on this path(c:\windows\temp)
#35 by fr34ki on December 30, 2009 - 12:05 am
Quote
I found a working VC6 version of imagick on this site.
You can download it here:
http://valokuva.org/outside-blog-content/imagick-windows-builds/080709/
It’s an “old” edition (2.2.1-dev) but it’s better than nothing.
But did i get it right? You only need Visual Studio 6 to compile this http://pecl.php.net/get/imagick into an VC6 dll? Or what do you need to compile?
A tutorial would be great for those of us who still have such things as Visual Studio 6.
Great
fr34ki
Pingback: Windows + Apache + PHP + Imagick - php.de
Pingback: XAMPP und Imagick (MagickWand) | Nerd 2.0
#36 by valter on January 15, 2010 - 3:21 pm
Quote
Hello. What can I do to imagick run on Windows 7?
I installed xampp XAMPP 1.7.3 and imagemagick. Copied the imagick dll to ext dir as I did when I used Win XP. But, now on windows seven it doesn’t run
#37 by stausen on January 15, 2010 - 9:02 pm
Quote
Dear mikko,
the demos on ur site are amazing. I’ve installed on my debian etch with:
sudo apt-get install make php5-dev php-pear
sudo apt-get remove php5-imagick
sudo apt-get install libmagick9-dev
sudo pecl install imagick
my info.php says everything is okay and enabled but when i try to use one of ur scripts there comes:
Fatal error: Uncaught exception ‘ImagickException’ with message ‘Wand contains no images `MagickWand-2” in /var/kunden/webs/eltoro/new/top.php:204 Stack trace: #0 /var/kunden/webs/eltoro/new/top.php(204): Imagick->__construct(‘seite_01.png’) #1 /var/kunden/webs/eltoro/new/index.php(16): include(‘/var/kunden/web…’) #2 {main} thrown in /var/kunden/webs/eltoro/new/top.php on line 204
I don’t know whats wrong in here.
#38 by Jim on January 16, 2010 - 2:26 am
Quote
Hi Mikko, thanks for this. Now there are no errors “Imagick class not found”. But, unfortunately I can’t get any functions of Imagick working! I use imagemagick 6.5.9. Is it OK? Or I should use ImageMagick version 6.5.7? Thanks before….
#39 by valter on January 16, 2010 - 4:03 pm
Quote
Hi.
I solved the problem. Now I’m running xampp 1.7.0 and imagick on Windows Seven Ultimate.
I installed ImageMagick-6.4.1-0-Q8-windows-dll and downloaded php_imagick_dyn-Q8.dll. You can find this dll here
http://valokuva.org/outside-blog-content/imagick-windows-builds/080709/
——
Every thing is working now.
#40 by Josh on January 22, 2010 - 2:53 am
Quote
I’m getting nowhere with this. I just downloaded XAMPP 1.7.3, updated ImageMagick to 6.5.9 and have tried every file I could find to get imagick to work but it always ends with an error.
Can someone please explain how I’m supposed to get it to work, I never had any trouble getting it to work with Abyss Web Server x1 and VertrigoServ.
Thanks
#41 by Dan on February 13, 2010 - 2:29 am
Quote
Hello everyone. I had successfully installed imagick on my old windows xp dev machine.
I wasn’t having any luck configuring on my new windows 7 machine. The problem was with php_imagick_ts.dll dev 3.0 and 2.3.1.
I found my old php_imagick_dyn-Q16.dll. While keeping the newest version of imagick(6.5.9) installed I decided to try my old DLL. Voila. It works. The module is 2.2.1-dev. If anyone needs a copy of this let me know. As well I’d like to get some insight on why I can’t the the imagick_ts.dll to work. Is this due to the VC6 VC9 issues?
#42 by David Warner on March 1, 2010 - 3:36 pm
Quote
Hi Mikko,
Thanks for your great work
I have just downloaded the latest version of WampServer (2.0i) which contains PHP 5.3.0 by default. Problem is, it’s compiled with VC6 and your DLL is compiled with VC9. This is not something new, but i’ve googled the heck out of the problem and it seems that I should only install a VC9 version of PHP if i’m using IIS, which i’m not.
As such, are you going to ever plop out a VC6 version? I don’t know what to do, i’ve tried using my ‘old’ version of imagick, like Dan (#41) did but that failed for me too.
Any thoughts?
#43 by Mikko Koppanen on March 1, 2010 - 4:46 pm
Quote
Hi David,
No, I don’t plan to make VC6 version as I have no access to VC6 compiler.
#44 by David Warner on March 2, 2010 - 10:01 am
Quote
Drat. So my only hope is WAMP with PHP compiled with VC9 then?
Oh well … such is life. Thanks for all the good work Mikko
#45 by Chris on March 3, 2010 - 9:53 am
Quote
On Wampserver + Win 7 x64 this does not seem to work.. is Wampserver compiled with VC 9 ?
Apache always comes with:
PHP Warning: PHP Startup: Unable to load dynamic library ‘d:/wamp/bin/php/php5.3.0/ext/php_imagick_nts.dll’ – The specified module could not be found.\r\n in Unknown on line 0
#46 by Anís on March 3, 2010 - 4:34 pm
Quote
Hi Mikko, thanks for offering this great tool. One question, do you know if the compiled x86 extension you offer will work on PHP x64 on 64-bit windows? I am doing a fresh install on a Windows Server 2008 R2 64-bit, and want to have everything running on x64.
#47 by Kirill on March 5, 2010 - 6:10 pm
Quote
Hi Mikko,
The code:
new Imagick(‘c:\img.jpg’);
return error: Fatal error: Uncaught exception ‘ImagickException’ with message ‘Empty input file `C:/Windows/TEMP/magick-HQSxIg9h’ @ error/jpeg.c/EmitMessage/233′ in … Imagick->__construct(‘F:\my.classicbe…’) #1 {main} …
I am using Win2008 Web x86, IIS 7.0, php 5.3.1, php_imagick_nts.dll (3.0.0-dev).
Please help me.
#48 by Vic D'Elfant on March 7, 2010 - 5:27 pm
Quote
Hi Mikko,
Would you happen to have any pointers as to where to get php_imagick.dll (static or dynamic, as long as it works) and a matching ImageMagick version for a non thread safe PHP 5.2.13 install? The few I came across on the internet complain – not surprisingly – about missing entry points. I have tried most of the historic ImageMagick releases, but unfortunately I’m not able to find any information pointing to a php_imagick-nts build as well as the ImageMagick version it was actually built against.
Thanks a lot if you’d be able to help!