h4x0rmx
01-28-2006, 03:15 PM
Hello you all!
I'm working on a small site where I have some galleries. The images are stored on a database and I use something like:
<img src="view_pic.php?id=1" />
to display them. Right now I'm asking for the picture and it's own thumbnail, which can be quite a lot of work for the end-user.
I have a table for the big pics and another table for the thumbnails [easier to link each pic with it's thumbnail].
I know that the GD library is available on my host, so I'm able to generate the thumbnails on the fly.
I want some suggestions from you?
What would be better? and why?
1. Create the thumbnails at upload time and store them on the db?
2. Store just the big pictures and use gd to display the thumbs only when a user is looking at the gallery?
I'm tempted to use the first option, but what do you think?
Any suggestions will be appreciated!
Thanx!
I'm working on a small site where I have some galleries. The images are stored on a database and I use something like:
<img src="view_pic.php?id=1" />
to display them. Right now I'm asking for the picture and it's own thumbnail, which can be quite a lot of work for the end-user.
I have a table for the big pics and another table for the thumbnails [easier to link each pic with it's thumbnail].
I know that the GD library is available on my host, so I'm able to generate the thumbnails on the fly.
I want some suggestions from you?
What would be better? and why?
1. Create the thumbnails at upload time and store them on the db?
2. Store just the big pictures and use gd to display the thumbs only when a user is looking at the gallery?
I'm tempted to use the first option, but what do you think?
Any suggestions will be appreciated!
Thanx!