Do not return value from resized image

See all posts Reply

Do not return value from resized image new!
by Cesar, 5 years, 4 months ago
if ($handle->uploaded) {
  if ($handle->uploaded) {
    $handle->image_resize            = true;
    $handle->image_ratio_y           = true;
    $handle->image_x                 = 251;
    $handle->file_new_name_body      = $id."G";
    $handle->file_overwrite          = true; 
    $handle->image_convert           = 'jpg';
    $handle->process($dir_dest);
    if ($handle->processed) {
      $erro = 100;
      $ximagem = $handle->image_dst_x;
      $yimagem = $handle->image_dst_y;
    } else {
      $erro = 200;
    }			
    $handle-> clean();
  } else {
    $erro = 200;
  } 
  $handle->image_ratio_y           = true;
  $handle->image_x                 = 251;
  $handle->file_new_name_body      = $id."G";
  $handle->file_overwrite          = true; 
  $handle->image_convert           = 'jpg';
  $handle->process($dir_dest);
  if ($handle->processed) {
    $erro = 100;
    $ximagem = $handle->image_dst_x;
    $yimagem = $handle->image_dst_y;
  } else {
    $erro = 200;
  }			
  $handle-> clean();
Reply
Re: Do not return value from resized image new!
by colin, 5 years, 4 months ago
Your code is weirly indented. Anyhow, check the log from the class, it will tell you everything that is happening.Reply