When a link is posted on Reddit, Facebook, and various other sites, it often includes a thumbnail of an image on the page.
How do sites like these find the most important or relevant image on the page, effectively ignoring site logos, banner ads, etc.?