When I was working the update for my Ajax demo , I needed to create thumb nail from a director of photos. There are tons of tools out there to do this, but I thought I'd share the very simple code I used. It takes all the jpgs in the root path and creates 160x120 thumbnails of them. It also copies the original photo into fullpath. namespace ThumbNailer { class Program { static void Main( string [] args) { string rootPath = @"C:\Users\brada\Desktop\ForDemo" ; string thumbPath = Path .Combine(rootPath, "Thumb" ); if ( Directory .Exists(thumbPath)) DirectoryDelete(thumbPath); Directory .CreateDirectory(thumbPath); int imageNumber = 0; foreach ( string s in Directory .GetFiles(rootPath, "*.jpg"...(read more) ...
Go to the complete details ...