[thelist] php and imagemagick - not getting anywhere
Dunstan Orchard
dunstan at 1976design.com
Fri Nov 28 14:08:25 CST 2003
Hi everyone,
I'm tearing my hair out over imagemagick and php. I can't even get the
simplest example to work, and my host assures me that the path to IM is
correct and that another site is running IM quite happily on the same
server.
I've tried a number of examples from tutorial sites, and none will work.
Does anyone know what I'm doing wrong with this example? I cut and
pasted it from a tutorial site, so it should work (the original image is
present on the server and displaying properly, so the paths are correct):
<?
error_reporting(E_ALL);
define("CONVERT_PATH", "/usr/bin/convert");
exec(CONVERT_PATH." -geometry 100x75 /home/licenced/public_html/184.jpg
/home/licenced/public_html/184b.jpg");
// display original photo
if (file_exists('/home/licenced/public_html/184.jpg'))
{
?>
<p>Original Photo:<br /><img src="184.jpg"></p>
<?
}
else
{
?>
<p>Original Photo: Not Found</p>
<?
}
if (file_exists('/home/licenced/public_html/184b.jpg'))
{
?>
<p>Thumbnail:<br /><img src="184b.jpg"></p>
<?
}
else
{
?>
<p>Thumbnail: Unable to Create</p>
<?
}
?>
Thanks very much - Dunstan
p.s. I'm on digest, so if anyone can help, would they be kind enough to
CC me please?
-------------------------------------
Dorset, England
Work: http://www.1976design.com/
Play: http://www.1976design.com/blog/
Learn: http://webstandards.org/
More information about the thelist
mailing list