Reply to Problem with ratio crop

Problem with ratio crop new!
by Ferdia, 13 years, 12 months ago
Hi, I am having a problem with the ratio crop function, here is my code:
$path = '../photos/small/';
$obj = new upload($_FILES['image']);
if($obj->uploaded) {
  $time = time();
  $obj->file_new_name_body    = $newid."-".$time;
  $obj->jpeg_quality		   = 100;
  $foo->image_resize          = true;
  $foo->image_ratio_crop      = true;
  $foo->image_y               = 75;
  $foo->image_x               = 75;
  $obj->process($path);
  if ($obj->processed){
    $imageOriginal = $obj->file_dst_name;
    $size = getimagesize($path . $imageOriginal);
    $imageOriginalWidth = $size[0];
    $imageOriginalHeight = $size[1];
}

It returns the image at its original size. Any suggestions?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