Thanks for your helpful reply, I am relatively new to C# and never heard about lambda expression before but I read about it and I think I got it.
2 quick questions for you, we basically want to do something similar to the facebook on our intranet, when a sales rep adds a link, we want to be able to get the html and display a list of images so they can select a main image. We thought about downloading
them to a temp folder to check the size but we are concerned about performance, we want the images to be displayed as fast as possible, even though we will resize the image we would like to remove from the list icons or small images.
Facebook is very good at filtering icons, do you think they do what you suggested (bitmap) have you tried this before? is the bitmap loaded on memory and then released? there is no way to get that information from the html right?
return new Bitmap(source).Width<=maxWidth;
Question #2 is there an easy way to select only nodes where the extension is not gif using only one statement?
links = doc.DocumentNode.SelectNodes("//img");
Thanks a lot for your help!