Reply to problem generating thumbnail

problem generating thumbnail new!
by kryska, 12 years, 3 months ago
I get the first image cropped and perfectly resized. But i can`t see the problem with the thumnail...any help??? Please...

$handle = new upload($fname_original);        
if ($handle->uploaded) {  
  //Get the new coordinates to crop the image.
  $x1 = $_POST["x1"];
  $y1 = $_POST["y1"];
  $x2 = $_POST["x2"];
  $y2 = $_POST["y2"];
  $w = $_POST["w"];
  $h = $_POST["h"];
  
  $handle->mime_check = true;
  $handle->allowed = array('image/*');
  $handle->forbidden = array('application/*');

  $handle->file_new_name_body   = 'imagen_proy';        
  $handle->image_resize          = true;
  $handle->image_x               = 470;
  $handle->image_y               = 470;      
  $handle->image_precrop = array($y1, $handle->image_src_x - $x2, $handle->image_src_y - $y2, $x1);        
  $handle->process($dir_pics);               
    
  //thumbnail
  $handle->file_new_name_body   = 'thhimagen_proy';
  $handle->image_resize          = true;
  $handle->image_ratio_x         = true;            
  $handle->image_y               = 400;
  $handle->image_precrop = array($y1, $handle->image_src_x - $x2, $handle->image_src_y - $y2, $x1);
  $handle->process($dir_pics);        
  
  $handle->clean();
} else {
  echo 'error : ' . $handle->error;
}
Reply

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