duniyadnd
03-30-2003, 11:05 PM
I've noticed a lot of people have made classes which go through a directory looking for a certain type of file (*.gif; *.png; *.jpg etc.) and puts it into an array and spits out the information with the same image information only resized.
eg. an image originally sized 800x600 is now set up as:
<img src="image.jpg" width="50" height="50" />
My question is not about how to go about this, but more about is it feasable using it! As load time would decrease considerably no matter what dimensions is set up in the image tag, because the size of the file is still the same. It does save on harddrive space though, by just keeping one file.
But wouldn't it be easier to use something along the lines of imagecopy() -> not exactly this function, but one similar to it -> which copies and shrinks the image and size and creates a temporary image for the viewer to see as a thumbnail. However, this could take up bandwidth space if excessive number of people come to see the wallpapers.
Or is the best method to create thumbnails individually and create seperate sizes?
Any suggestions?
Thanks
Duniyadnd
eg. an image originally sized 800x600 is now set up as:
<img src="image.jpg" width="50" height="50" />
My question is not about how to go about this, but more about is it feasable using it! As load time would decrease considerably no matter what dimensions is set up in the image tag, because the size of the file is still the same. It does save on harddrive space though, by just keeping one file.
But wouldn't it be easier to use something along the lines of imagecopy() -> not exactly this function, but one similar to it -> which copies and shrinks the image and size and creates a temporary image for the viewer to see as a thumbnail. However, this could take up bandwidth space if excessive number of people come to see the wallpapers.
Or is the best method to create thumbnails individually and create seperate sizes?
Any suggestions?
Thanks
Duniyadnd