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.
hi i try to take thumb image from original image i want to take thum and keep the original image the code used
$foo = new Upload($_FILES['mhna_pic']);
$fooThumb=$foo;
$fooThumb->file_new_name_body="image_resized";
$fooThumb->image_resize=true;
$fooThumb->image_convert=gif;
$fooThumb->image_x=90;
$fooThumb->image_y=105;
$foo2 = new Upload($_FILES['mhna_pic2']);
if ($foo or $foo2 or $fooThumb->uploaded) {
$foo->Process('ups/');
$fooThumb->Process('ups/');
$foo2->Process('ups/');
if ($foo or $foo2 or $fooThumb->processed) {
$namei=$foo->file_dst_name;
$nameiThumb=$fooThumb->file_dst_name;
as you see i use $nameiThumb to take copy from $foo this code work successfully in crop image but when store in name in database not work but save $foo name instead $nameiThumb plz help me how to save $nameiThumb
i try to take thumb image from original image
i want to take thum and keep the original image
the code used
$foo = new Upload($_FILES['mhna_pic']); $fooThumb=$foo; $fooThumb->file_new_name_body="image_resized"; $fooThumb->image_resize=true; $fooThumb->image_convert=gif; $fooThumb->image_x=90; $fooThumb->image_y=105; $foo2 = new Upload($_FILES['mhna_pic2']); if ($foo or $foo2 or $fooThumb->uploaded) { $foo->Process('ups/'); $fooThumb->Process('ups/'); $foo2->Process('ups/'); if ($foo or $foo2 or $fooThumb->processed) { $namei=$foo->file_dst_name; $nameiThumb=$fooThumb->file_dst_name;as you see i use $nameiThumb to take copy from $foo this code work successfully in crop image but when store in name in database not work but save $foo name instead $nameiThumbplz help me how to save $nameiThumb