imagick

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

imagick

Postby Itzs » 07. June 2010 12:35

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?
Itzs
 
Posts: 5
Joined: 07. June 2010 11:09

Re: imagick

Postby Takster » 07. June 2010 13:29

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
User avatar
Takster
 
Posts: 13
Joined: 29. August 2006 10:18
Operating System: USB etch-a-sketch

Re: imagick

Postby Itzs » 07. June 2010 14:54

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.
Itzs
 
Posts: 5
Joined: 07. June 2010 11:09

Re: imagick

Postby JonB » 07. June 2010 22:50

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:
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

Re: imagick

Postby jollyjollyjolly » 09. October 2010 09:36

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
jollyjollyjolly
 
Posts: 1
Joined: 09. October 2010 09:32

Re: imagick

Postby JonB » 09. October 2010 17:28

@ jollyjollyjolly

Thanks, I'll try your tutorial -

:shock:
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

Re: imagick

Postby shanthini » 12. May 2011 12:41

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.
shanthini
 
Posts: 6
Joined: 07. August 2010 07:43

Re: imagick

Postby Sharley » 13. May 2011 01:01

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: imagick

Postby shanthini » 13. May 2011 05:46

Hi,


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

Thanks
shanthini
 
Posts: 6
Joined: 07. August 2010 07:43

Re: imagick

Postby roman2 » 10. December 2011 00:44

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.
roman2
 
Posts: 17
Joined: 03. July 2009 15:56
Operating System: 32-bit Windows 7

Re: imagick

Postby Sharley » 10. December 2011 01:02

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 83 guests