I’ve read about creating a HttpHandler to call each time I want to show a thumbnail where it will perfom the resizing for me.
I’ve also heard about some other solutions, but I was wondering which solution would be the best for a social networking website where thumbnails are shown all over the place on each page and everywhere.
Would it be good to resize and save the image on the disk after the origianl file has been uploaded? What’s the best way to reference these images?
Does anyone have any advice for me?
Thank you.
Definitely, that’s what Twitter does, for example, and most websites when thumbnails need to be displayed. This is time consuming. You don’t want your user to sit idle while you do this on every image every time.
Store the thumbnails on disk and keep a reference to the thumbnails on the database. Or store them on the db itself. I don’t want to get into that debate about disk vs DB but just don’t resize them every time. It should be done ONCE.