Reply to Resize doesn't work on hosting account

Resize doesn't work on hosting account new!
by Steve, 13 years ago
Hi,

First thing, thanks for the class,it's brilliant!

I'm using it on a site I just made to upload and resize an image. It works great on my local machine but when I put the site live on hosting ( 1and1 :( ) it doesn't resize the image.

I get no errors or warnings, the log says no image processing wanted.

I'm using the latest version of the script and the upload part is working great, just not the resize part.

Is this just because of the 1and1 hosting or is there anything in the script I could change?
$upl = new Upload($_FILES['cover']);
$path = IMG_PATH . 'covers' . DS;
if ($upl->uploaded) {
  $upl->image_resize = true;
  $upl->image_convert = jpg;
  $upl->image_x = 200;
  $upl->image_y = 150;
  $upl->image_ratio_no_zoom_in = true;
  $upl->process($path);
  if ($upl->processed) {
    echo 'Image uploaded';
  } else {
    echo 'Error : ' . $upl->error;
  }
  echo $upl->log;		
}

Thanks in advance for any helpReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important