web_master Posted May 25, 2007 Share Posted May 25, 2007 how can I upload and resize 2 or more pict in same time: if($_FILES["picture"]["name"][1]) { $dest = "../photo_dir/".$document_id."_photo[1].jpg"; copy($_FILES["picture"]["tmp_name"][1], $dest); } if($_FILES["picture"]["name"][2]) { $dest = "../photo_dir/".$document_id."_photo[2].jpg"; copy($_FILES["picture"]["tmp_name"][2], $dest); } ... but I want to these pictures been resized from original size (no matter what size) on upload to x= 100px y=100px - or other dimension. PLEASE A SIMPLE SCRIPT. Thanx in advanced!!!! Quote Link to comment https://forums.phpfreaks.com/topic/52961-upload-and-resize-2-pictures/ Share on other sites More sharing options...
Wildbug Posted May 25, 2007 Share Posted May 25, 2007 I believe "multiple file uploads" is covered right on the File Uploads page. Also see Image functions. Quote Link to comment https://forums.phpfreaks.com/topic/52961-upload-and-resize-2-pictures/#findComment-261644 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.