View Full Version : automatic photo resize from thumbnail to larger size

02-10-2007, 10:51 PM
What is the best way to build a web page that will automatically resize a 400x500(or whaterver) photo to a thumbnail version in my html page?

I want to be able to upload only one file to the ftp site and not 2. Here is a diagram to better explain what I am after.



02-11-2007, 07:10 AM
I found this link: http://www.xs4all.nl/~sbpoley/webmatters/resize.html

Look inside the source code, I found these lines that can work for you:

document.images[imgElement].width = imgArr[n][imgwidth];
document.images[imgElement].height= imgArr[n][imgheight];

Mr J
02-11-2007, 09:22 AM
Place your thumbnail img tags in a div and then set the size for those thumbnails using css

<style type="text/css">

.thumbs img{


<div class="thumbs">
<img src="pic1.jpg">
<img src="pic2.jpg">
<img src="pic3.jpg">
<img src="pic4.jpg">
<img src="pic5.jpg">

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum