Jump to content

Help with rezizing images


raryre23

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.