When coding my website, I want to have a thumbnail of the latest gallery item. But the thumbnail is of a different size than the gallery will automatically generate.
So I have a multitude of options but I'm wonder will be the most efficient in terms of generating the page quickest. (Note: all of this is using GDI)
1) Use a PHP file to generate a thmbnail from the fullsize image everytime. (Or generate it from another thumbnail)
2) Check if a thumbnail is made, if not, generate the thumbnail, then display it using HTML
3) Check if the thumbnail is made, if not, generate the thumbnail, and then make an image reference in PHP of the thumbnail and generate it that way.
As I code the Gallery Program (GALant), I run across instances where I'm say, checking if a file exists. Everytime I load a page. That doesn't seem efficient to me. Are there any papers or topics that discuss this area?