php install help
Posted: 2010-11-03T14:26:27-07:00
I think I've installed image magic correctly but cant get an example to work. Looking at other threads here is what I have:
> convert -version
Version: ImageMagick 6.2.5 04/20/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
[Yeah, I'm stuck with an older version]
> which convert
/usr/bin/convert
That all looks good. In PHP I've tried
<?php
if (extension_loaded('imagick')){ echo 'imagick';}
?>
and that does output 'imagick'. The problem is that in my code if I try the following it just hangs.
$image = new Imagic(); // or supplying an existing file name
Which is similar to examples over at http://php.net/manual/en/imagick.examples-1.php
The thing is I really want to avoid using exec in my code, but rubblewebs seemed to use exec in the examples I looked at. Any suggestions on what I need to do?
> convert -version
Version: ImageMagick 6.2.5 04/20/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
[Yeah, I'm stuck with an older version]
> which convert
/usr/bin/convert
That all looks good. In PHP I've tried
<?php
if (extension_loaded('imagick')){ echo 'imagick';}
?>
and that does output 'imagick'. The problem is that in my code if I try the following it just hangs.
$image = new Imagic(); // or supplying an existing file name
Which is similar to examples over at http://php.net/manual/en/imagick.examples-1.php
The thing is I really want to avoid using exec in my code, but rubblewebs seemed to use exec in the examples I looked at. Any suggestions on what I need to do?