I am resizing and transferring images from one folder to another. The images are fed to the front end via MySQL. The problem is, I am getting the famous x's for the images after the transfer. A right click tells me that the paths to the images after transfer is correct. Here is the code where I believe the problem is:
<?php
$imgSize = 100;
$original_max_size = '600x600';
$thumb_size1 = '100x100';
$thumb_size2 = '300x300';
$command = '/usr/bin/convert';
//echo ($command);
// resize for thumbnail 1 size
$current_command = $command.$thumb_size1.' "'.$old.'" '.$thumb1;
//echo ($current_command);
exec($current_command, $retarray, $retval);
// echo $current_command;
if ($retval != 0) // error
{
echo 'error upon resizing for thumbnail 1 : '.$old.' to '.$thumb1;
}
Here is the error code:
error upon resizing for thumbnail 1 : home/russia5/public_html/uploads/1181232172.jpg to home/russia5/public_html/images_thumb1/Girl-ddee-1-20070607.jpg
When the echo ($current_command); is uncommented, I get:
/usr/bin/convert100x100
The only thing I can think of, is convert100x100 is not what I need. Any help would be much appreciated.