Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autoresizing images

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
We are wondering if and how it is possible to autoresize images within a php-working area. Now it is possible to upload images within the php-script (using MySQL);

what we want to achieve is that uploaded images can have any resolutionsize and filesize, but that within php the images are forced to be shown on the website in a fixed pre-defined format.

Can anyone help me out?
 
Emmm... this might be too simple!

<?

$required_height = &quot;20&quot;;
$required_width = &quot;20&quot;;

print &quot;<img src=\&quot;$image_location\&quot; border=\&quot;0\&quot; width=\&quot;$required_width\&quot; height=\&quot;$required_height\&quot;>\n&quot;;


easy is best!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top