raryre23 Posted April 14, 2007 Share Posted April 14, 2007 I have downloaded a script for my website which displays a random picture on the front page that a member has uploaded. I realise that i should rezize the photos when they are uploaded but this is just too complicated for me and i would like to know how to just rezize the photo when it is actually loaded on the homepage. i know that there is probably other similar posts but i wouldnt have a clue how to apply their answers to my problem (due to my complete lack of php). im guessing the rezizing bit goes in here somewhere: <tr valign="middle" > <td height="19" align="center"> </td> <td height="19" colspan="4" align="center" ><? print $pic;?></td> </tr> <tr valign="middle" > <td height="19" align="center"> </td> <td height="19" colspan="4" align="center" > </td> </tr> any help would be appreciated! Link to comment https://forums.phpfreaks.com/topic/46984-help-with-rezizing-images/ Share on other sites More sharing options...
clown[NOR] Posted April 14, 2007 Share Posted April 14, 2007 i dont know how to do it myself... but i guess the resize part goes in after the image has been uploaded.. after something that might look like this: if (move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $full_path)) { here's a tutorial i found ... http://www.tutorialized.com/tutorial/Creating-thumbnail-Resize-an-image-with-PHP/24351 Hope that helps - Clown Link to comment https://forums.phpfreaks.com/topic/46984-help-with-rezizing-images/#findComment-229121 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.