Page 1 of 1

imagick

PostPosted: 07. June 2010 12:35
by Itzs
Hi i have been reading the posts on this and have tried all i can find with these errors.

1 Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.

2 php startup: imagick: unable to initialize module module compiled with api = 20060613
php compiled with module api=20090626
these options need to match

3 php startup: imagick: unable to initialize module module compiled with built id=api20090626, ts, vc9
php compiled with build id=api20090626, ts ,vc6

So three different errors using 3 different dll files.

I installed image magic to xampp\imagemagic download from the imagemagic website lateest version thred safe. I then tried all the dll files i could find but the the above error messages.

I am on a windows machine using the latest version of xampp.

Does anyone one know where i am going wrong? Is there any plans to add imagic to xampp?

Re: imagick

PostPosted: 07. June 2010 13:29
by Takster
long story short, no, imagemagick is not working on 1.7.3. PHP is compiled differently. There is a VC6 imagemagick dll out there but for version 5.3.2 PHP, useless for us. (1.7.3 = PHP 5.3.1)

PHP is compiled with VC6, but we need it to be compiled with VC9

Re: imagick

PostPosted: 07. June 2010 14:54
by Itzs
So thats why i cant get it working, guess i could remove php and install new version, then i should be able to get it working?

Is there anyone working on it for xampp, is it worth waiting?

I am new to xampp and stated using it because updating the products indavidualy was always a pain and a bundled package seems like a great idea.

Now i am stuck with the same sort of problem.

All this so i can test code on a test machine for one customer who has limited knowlage of how to resize images and gd2 uses to much memory when resizing 2500 * 2000 pictures straight of the camera.

Re: imagick

PostPosted: 07. June 2010 22:50
by JonB
A concise explantion of why it won't be happening at this point:

from windows.php.net

Which version do I choose?
If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP

If you are using PHP with IIS you should use the VC9 versions of PHP

VC6 Versions are compiled with the legacy Visual Studio 6 compiler

VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed

Do NOT use VC9 version with apache.org binaries

http://windows.php.net/download

In other words, Visual C 2008 binaries work with IIS, not with Apache.org distributed binaries. XAMMP uses the apache.org binaries, thus no Imagick without recompiling Apache with the same compiler, probably ditto on PHP (although I am unsure on this part).

Note also that installing the runtimes (which would now likely be needed for Apache as well) would break the level of portability in XAMPP.

The boss here can feel free to critique my analysis. :lol:

my reading only

:shock:

Re: imagick

PostPosted: 09. October 2010 09:36
by jollyjollyjolly
Just a quick fix for anyone still having problems I wrote up a fast tutorial for windows XAMPP 1.7.3 and Imagick

http://www.jerodmoore.com/?p=11

Re: imagick

PostPosted: 09. October 2010 17:28
by JonB
@ jollyjollyjolly

Thanks, I'll try your tutorial -

:shock:

Re: imagick

PostPosted: 12. May 2011 12:41
by shanthini
jollyjollyjolly wrote:Just a quick fix for anyone still having problems I wrote up a fast tutorial for windows XAMPP 1.7.3 and Imagick

http://www.jerodmoore.com/?p=11


I tried your tutorial. I am having xampp 1.7.3

In phpinfo I am able to see imagick section and got enabled.

But when I try the below code

<?
$image=new Imagick();
$image->readImage("image.jpg");
$image->setImageFileName("image_copy.jpg");
$image->writeImage();
?>

it gives me the error
An unhandled win32 exception occurred in httpd.exe

Please advise to fix this. Thanks in advance.

Re: imagick

PostPosted: 13. May 2011 01:01
by Sharley
Change your php tags to <?php ... ?>
short-open-tag is switched off by default in the php.ini file as they conflict with other scripting languages - read the comments in the php.ini file.

Re: imagick

PostPosted: 13. May 2011 05:46
by shanthini
Hi,


That is not a problem. I have changed short open tag on. My rest of the applications are working fine.

Thanks

Re: imagick

PostPosted: 10. December 2011 00:44
by roman2
That guide is no longer available. For installing imagick extension for XAMPP 1.7.7 on Windows, read viewtopic.php?f=16&t=49010&p=189862.

Re: imagick

PostPosted: 10. December 2011 01:02
by Sharley
jollyjollyjolly wrote:Just a quick fix for anyone still having problems I wrote up a fast tutorial for windows XAMPP 1.7.3 and Imagick

http://www.jerodmoore.com/?p=11
Dead link.

Please see post above by roman2.

Topic closed.