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.
more info about the class
function imageUpload($file, $upadres, $w, $h, $ratio_fill,$png = false) { $upload = new upload($file); if ($upload->uploaded) { $upload->file_new_name_body = md5($upload->file_src_name_body); $upload->file_auto_rename = true; $upload->image_resize = true; if ($h > 0) { $upload->image_x = $w; $upload->image_y = $h; } else { $upload->image_x = $w; $upload->image_ratio_y = true; } if($png) $upload->image_convert = 'png'; if ($ratio_fill>0) { $upload->image_ratio_fill = $ratio_fill; $upload->image_background_color = null; } $upload->process($upadres); } return $upload->file_dst_name; }
I receive the error line imagecreatetruecolor.
Function name : imagecreatenew
Picture Adress : http://www.milenyum.tv/error/DSC_3398.JPG
My Upload Function :
Please help.
Thanks