Page 1 of 1

how i show picture in thumnail.

Posted: Tue Feb 06, 2007 1:20 am
by nasir
Hi,
I need code to show picture in thumnail.

regards
nasir mumtaz

Posted: Tue Feb 06, 2007 1:54 am
by louie35
if you don't have it saved as tumbnail then use the width properties to set it

Code: Select all

<img src="image path" width="100" />
otherwise look for code to create a tumbnail from the original

Posted: Tue Feb 06, 2007 4:25 am
by Ollie Saunders
Don't do that. The browser still has to download the full sized image. It is a dead give-away of a really crappy website. GD is a the library provided with PHP for doing image manipulation including resizing. In particular imagecopyresampled() may be of interest.