class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
It is almost certainly a memory issue. Check with a phpinfo() that you indeed have raised the memory limits. Also try, just for the sake of testing, to have a lot of memory available (100+MB, rather than 20 or 32).Reply
$handle = new upload("../temp_photos/mytest.jpg"); $handle->file_max_size='10240000'; if ($handle->uploaded) { $handle->image_crop = array(10,30,60,20); $handle->process("../temp_photos/"); if ($handle->processed) { echo 'image cropped'; $handle->clean(); } else { echo 'error : ' . $handle->error; } }It is almost certainly a memory issue. Check with a phpinfo() that you indeed have raised the memory limits. Also try, just for the sake of testing, to have a lot of memory available (100+MB, rather than 20 or 32).