Thumbnails

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
leebo
Forum Commoner
Posts: 44
Joined: Sun Oct 20, 2002 9:49 am

Thumbnails

Post by leebo »

I have about 30 images in my website which are all over 400x300 px - when trying to display them as thumbnails it reduces the image size but the page takes for ever to load - i`m wanting a way where it will reduce the image size as it is loading so instead of having 30 images at 50kb each - i have 30 images at 2kb each. Can anyone help me with this ?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

You could always spend 30 minutes actually creating the thumbnail images instead of trying to do it all with PHP. It will also make your page load a lot faster because using PHP to dynamically create and display your thumbnails will take a while.
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post by hedge »

I would suggest building them on the fly but save the file so you only take the hit the first time.
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

Post by pootergeist »

http://www.phpclasses.org/browse.html/package/1007.html

if you can understand the instructions for that class, you can do the lot in one easy swoop.

requires GD2+ though (distroed with php4.3+)

subnote: if you use that and need help with it, ask me as I wrote it.
Post Reply