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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

better way to load images 2

Status
Not open for further replies.

adddeveloper

Programmer
Dec 16, 2006
43
US
Newbie here!

I have several different pages, 7 to be exact, and they all contain image files w/in a table.

What I'd like to do, to simply speed up the pages, is to use thumbnails instead of the whole picture.

....or some other type of better practice than show the whole image when the page loads.

Any suggestions are welcome!

Thanks!
 
I've had fantastic success with the examples on php.net for imagecopyresampled, take a look:


I wrote a photo gallery that creates and uses thumbnails with links to the original images. Let us know if you run into any hangups... this requires PHP with the GD 2.0.1 or later, but I find most builds include everything you need.
 
Thanks ecwcee!

What I ended up doing, and any input is welcome, is took the original image, and with Fireworks, did a numerical transformation to 25% of the original size. Then, simply made the smaller image inside an anchor tag to the larger one.

Thanks again!
 
If it's something you update regularly, you should considering installing a fully fledged photogallery script to backend it, something along the lines of would be fine, but there are literally countless other ones around the net, so hit up google and see what takes your fancy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top