class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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...
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.