1

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.?

Related: How major websites capture thumbnails from a link?

Community
  • 1
  • 1
Jenny Dcosta
  • 135
  • 1
  • 4
  • 11
  • 1
    It has been asked *even earlier*, with plenty of precise answers :) e.g. [How can I take fullscreen screenshot of website](http://stackoverflow.com/q/1488589) – Pekka Nov 04 '11 at 11:05
  • they all are about capturing screenschots of entire page, what I exactly wanted to know was..for ex: when somebody posts a pic from imgur.com in reddit, reddit picks only the pic and displays as thumbnail. – Jenny Dcosta Nov 04 '11 at 11:08
  • 1
    Ah, okay. Consider updating your question with that information – Pekka Nov 04 '11 at 11:09
  • 1
    @Pekka, I re-wrote his question, and have voted to re-open, now that we know what she wants. – Brad Nov 05 '11 at 04:35

1 Answers1

1

The parse the page, and look for a larger image. There is no sure-fire way to determine the best image to use.

You might also consider filtering out ads by looking for anything with the text "ad" and what not.

Community
  • 1
  • 1
Brad
  • 159,648
  • 54
  • 349
  • 530