I am creating a tool that will allow a user to upload an image and it will be added to a database. I would like to create a file based thumbnail based on the original file.
Normally I would do this on the fly, but I expect a fair amount of traffic on the thumbnails and in past (classic ASP) sites it was a huge hit on the processor scaling 3000px+ images down to 150px or so.
See the pseudo code below for an example:
protected int createthumb( string strPath, string strFilename )
// create thumbnail of 'strFilename'
// save thumbnail as 'tn_' + strFilename