Search Webmaster Help and Solution

Resizing Images through img src

I need some expert help here.

Im creating a website that allows images to be uploaded and displayed. However, if a user uploads a huge image, the website will display it big.

I cant figure out how am i suppose to resize the image using the syntax below. Maybe im doing it all wrong as i cant think this through.

I cant do this width=".$width/4." as that doesnt work.

Code: <?php list($width,$height,$type,$attr) = getimagesize("my_image.jpg"); echo "<img src="my_image.jpg" width=".$width." height=".$height.">"; ?> Please help I need some expert help here.

Im creating a website that allows images to be uploaded and displayed. However, if a user uploads a huge image, the website will display it big.

I cant figure out how am i suppose to resize the image using the syntax below. Maybe im doing it all wrong as i cant think this through.

I cant do this width=".$width/4." as that doesnt work.

Code: <?php list($width,$height,$type,$attr) = getimagesize("my_image.jpg"); echo "<img src="my_image.jpg" width=".$width." height=".$height.">"; ?> Please help

View Complete Thread with Replies

Related Items

Query failed: connection to localhost:3354 failed (errno=111, msg=Connection refused).