Hi, I don't really know what I'm doing here so I'm just playing around. I want to change the size of an image using ImageMagick. I have nothing and can install nothing except command line ImageMagick. So far I have tried these two ways to no avail (please don't laugh). Does anybody knwo how I can make this work? Also, being able to get any error thrown from the exec would be helpfull.
<?
$image_path="./img";
$thumb_path="./thumb";
$image_name="fpoi_highlow2.jpg";
$fp=fopen($image_path."/".$image_name,"r");
$image_data=fread($fp,filesize($image_path."/".$iamge_name));
$command="convert ".$image_data." -resize 120x120 ".$thumb_path."/".$image_name;
exec($convert);
?>
<?
$image_path="./img";
$thumb_path="./thumb";
$image_name="fpoi_highlow2.jpg";
$command="convert ".$image_path."/".$image_name." -resize 120x120 ".$thumb_path."/".$image_name;
exec($convert);
?>
Thankyou in advance
Rob