Page 1 of 1

Thumbnails

Posted: Sun Mar 23, 2003 7:58 am
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 ?

Posted: Sun Mar 23, 2003 8:21 am
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.

Posted: Sun Mar 23, 2003 9:17 am
by hedge
I would suggest building them on the fly but save the file so you only take the hit the first time.

Posted: Sun Mar 23, 2003 10:43 am
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.