Problem running MagicWand with PHP in Linux!
Posted: 2007-07-17T16:23:12-07:00
Hi There!
im having problems running the MagicWandforPHP, and im unable to find the error...
the extension is apparently, installed correctly.
i have tried both as extension or compiled with the php.
and have tried the 0.1.8 and the 1.0.4
and it dont show any error, just dont do anything.. thats the reason i cant find the problem.
if i try to write with some text, and the font cant be find, it shows the error, but when you fix that, nothing else is showed.
this is the information of my instalations:
PHP Version 5.2.3, running with FastCGI on a Zeus web server
Linux Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
and information in phpinfo()
MagickWand Extension Version 1.0.4
ImageMagick support enabled
ImageMagick version ImageMagick 6.3.5 07/16/07 Q16 http://www.imagemagick.org
and this are the scripts executed
if i run this Imagemagic example from the SSH, it works well, but dont do anything from the web.
and this other example:
return this from the SSH:
convert is /usr/local/bin/convert
Version: ImageMagick 6.3.5 07/16/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
and this from the Web:
sh: line 0: type: convert: not found sh: convert: command not found sh: convert: command not found
i hope someone had this problem before, and could help me a little with this.
thank you all!
Matthew.
im having problems running the MagicWandforPHP, and im unable to find the error...
the extension is apparently, installed correctly.
i have tried both as extension or compiled with the php.
and have tried the 0.1.8 and the 1.0.4
and it dont show any error, just dont do anything.. thats the reason i cant find the problem.
if i try to write with some text, and the font cant be find, it shows the error, but when you fix that, nothing else is showed.
this is the information of my instalations:
PHP Version 5.2.3, running with FastCGI on a Zeus web server
Linux Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
and information in phpinfo()
MagickWand Extension Version 1.0.4
ImageMagick support enabled
ImageMagick version ImageMagick 6.3.5 07/16/07 Q16 http://www.imagemagick.org
and this are the scripts executed
Code: Select all
<?
$magick_wand=NewMagickWand();
MagickNewImage($magick_wand, 100, 100, "red");
MagickSetImageFormat($magick_wand, "jpeg");
MagickEchoImageBlob($magick_wand);
?>
Code: Select all
<?php system("convert -background lightblue -fill blue -font verdana.TTF -pointsize 72 label:Anthony label.gif");
?>
Code: Select all
<?php
// header("Content-Type: text/plain");
system("exec 2>&1; type convert");
// Output: convert is /usr/local/bin/convert
system("exec 2>&1; convert -version");
// Output: Version: ImageMagick 6.2.8 06/10/06 Q16 http://www.imagemagick.org
// Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
system("exec 2>&1; convert -list type");
// Only the first couple of lines of this output :
// Path: /usr/local/lib/ImageMagick-6.2.8/config/type-ghostscript.xml Name Family Style Stretch Weight ---------------------------------------$
// AvantGarde-Book AvantGarde Normal Normal 400 AvantGarde-BookOblique AvantGarde Oblique Normal 400 AvantGarde-Demi AvantGarde Normal Normal $
?>
convert is /usr/local/bin/convert
Version: ImageMagick 6.3.5 07/16/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC
and this from the Web:
sh: line 0: type: convert: not found sh: convert: command not found sh: convert: command not found
i hope someone had this problem before, and could help me a little with this.
thank you all!
Matthew.