samroberts
01-13-2004, 07:29 AM
Hello,
I've used Imagemagick on several sites - I've occasionally run into problems, but with a little tweaking, it's fixed.
On the site I'm currently working on, I'm having no such luck. Images get uploaded without issue, but the thumbnail creation fails. I'm posting a portion of the relevant code here:
-----BEGIN-----
$LARGE_PATH="/home/lbier/public_html/lambda/large/";
$THUMB_PATH="/home/lbier/public_html/lambda/thumbs/thumb_";
copy($image_file[0],$LARGE_PATH.$image_file_name[0]);
$quality="100";
$res="150x100";
@exec("which convert", $my_convert_path);
$imagePath=$LARGE_PATH.$image_file_name[0];
$resizedFile=$THUMB_PATH.$image_file_name[0];
$make_magick = system("convert -resize ".$res." -quality ".$quality." \"".$imagePath."\" \"".$resizedFile."\"",$retval);
-----END-----
Any ideas on what I'm doing wrong?
I've used Imagemagick on several sites - I've occasionally run into problems, but with a little tweaking, it's fixed.
On the site I'm currently working on, I'm having no such luck. Images get uploaded without issue, but the thumbnail creation fails. I'm posting a portion of the relevant code here:
-----BEGIN-----
$LARGE_PATH="/home/lbier/public_html/lambda/large/";
$THUMB_PATH="/home/lbier/public_html/lambda/thumbs/thumb_";
copy($image_file[0],$LARGE_PATH.$image_file_name[0]);
$quality="100";
$res="150x100";
@exec("which convert", $my_convert_path);
$imagePath=$LARGE_PATH.$image_file_name[0];
$resizedFile=$THUMB_PATH.$image_file_name[0];
$make_magick = system("convert -resize ".$res." -quality ".$quality." \"".$imagePath."\" \"".$resizedFile."\"",$retval);
-----END-----
Any ideas on what I'm doing wrong?