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); } ?> 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 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 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? 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 Link to comment https://forums.phpfreaks.com/topic/240289-resize-image/#findComment-1234223 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.