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.
I used your magnificent class to upload images and create thumbs. It's working except for the PNG large images. example this one.
The problem is : the thumb created for png large file has the same width and the same height as the original file .. here is the code for the upload and the thumb :
I used your magnificent class to upload images and create thumbs. It's working except for the PNG large images. example this one.
The problem is : the thumb created for png large file has the same width and the same height as the original file .. here is the code for the upload and the thumb :
$myimg->file_overwrit = true; $myimg->image_convert = 'jpg'; $myimg->file_new_name_body = "photo_$id"; $myimg->Process('../images'); if(!($myimg->processed)) return false; $myimg->image_resize = true; $myimg->file_overwrite = true; $myimg->image_convert = 'jpg'; $myimg->file_new_name_body = "thumb_$id"; $myimg->image_x = 120; $myimg->image_y = 120; $myimg->Process('../thumbs'); if($myimg->processed) return true; else return false;