View Full Version : ImageMagick

01-28-2003, 01:39 AM
Is anyone here good at ImageMagick?

I tried to resize an uploaded photo to a specified size, by the following in the handleUpload() of main.php:

$resized = system("$path -geometry ".$new_img_width."x".$new_img_height." $config[listings_upload_path]/$save_name");

I got two problems:

1 - the image got resized, but saved to a new file, like xxx.mgk, the original one was not replaced;
2 - the $resized is false.

I am not sure if that's the way ImageMagick works, or something is wrong?

By the way, the convert command in thumbnail_imagemagick.php works fine.

Can someone help?