how i show picture in thumnail.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nasir
Forum Newbie
Posts: 5
Joined: Thu Dec 07, 2006 7:36 am

how i show picture in thumnail.

Post by nasir »

Hi,
I need code to show picture in thumnail.

regards
nasir mumtaz
User avatar
louie35
Forum Contributor
Posts: 144
Joined: Fri Jan 26, 2007 8:40 am
Location: Dublin
Contact:

Post 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
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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.
Post Reply