Reply to Class not converting images

Class not converting images new!
by Viper, 15 years, 10 months ago
Hi!
I've try to convert images like png or bmp or gif to jpg.

if ($handle->uploaded) {
  $handle->file_new_name_body = $prefix_fr;
  $handle->file_name_body_add = $prefix;
  $handle->jpeg_quality = 100;
  $handle->image_resize = false;
  $handle->image_convert = 'jpg';
  $handle->process($ka_path_photo_people.'people/'.$fl.'/'.$prefix.'/');
  if ($handle->processed) {
    $link_fr_full = 'people/'.$fl.'/'.$prefix.'/'.$handle->file_dst_name;
    // ... some code ...
  }
}

and in second section I create thumbnail image. But in first section class only copy image w/o converting and second section wont work.
I'm testing with bmp... only copy image. For png... Only copy original image and create thumb. W/o coverting...

Where do I wrong?

PS! Class version 028.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