Resizing images - images too big?

See all posts See thread Reply

Re: Resizing images - images too big? new!
by Ken, 16 years, 6 months ago
If this is any help, this is the script I'm using:

$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;
  }
}
Reply
Re: Resizing images - images too big? new!
by colin, 16 years, 6 months ago
Your code is correct.

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