Bofas Posted June 24, 2011 Share Posted June 24, 2011 hi all, I have this code and I want to resize from 640,640 to 320,320 thats it <?php if (isset ($_POST['upload_img'])) { $file = basename($_FILES['userfile']['name']); move_uploaded_file($_FILES['userfile']['tmp_name'], 'images/' .$file); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/240289-resize-image/ Share on other sites More sharing options...
gizmola Posted June 24, 2011 Share Posted June 24, 2011 gd and imagecopyresampled Quote Link to comment https://forums.phpfreaks.com/topic/240289-resize-image/#findComment-1234214 Share on other sites More sharing options...
Bofas Posted June 24, 2011 Author Share Posted June 24, 2011 can anyone edit my code I need sample Quote Link to comment https://forums.phpfreaks.com/topic/240289-resize-image/#findComment-1234216 Share on other sites More sharing options...
gizmola Posted June 24, 2011 Share Posted June 24, 2011 can anyone edit my code I need sample What code? Quote Link to comment https://forums.phpfreaks.com/topic/240289-resize-image/#findComment-1234218 Share on other sites More sharing options...
EdwinPaul Posted June 24, 2011 Share Posted June 24, 2011 read http://www.bitrepository.com/web-programming/php/resizing-an-image.html and find out how Quote Link to comment https://forums.phpfreaks.com/topic/240289-resize-image/#findComment-1234223 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.