On Thu, Apr 2, 2015 at 11:35 AM, James Pearson james@reddit.com wrote:
While writing this, I recalled that the Wikipedia Android app displays thumbnails in its search results. I think that's pulling from OpenSearch with the PageImages extension[2]? but I haven't really delved into that yet. I'm curious how those images get pulled - if it's taking into account infoboxes or such, or just the first image on the page, or what.
It uses a scoring system that takes position on page, size and w:h ratio into account.
Would it be feasible to include an og:image tag on pages for which we have a reasonable guess as to the thumbnail? Open Graph[3] is supported by what seems anecdotally to me to be a wide range of services, so good hints there would improve thumbnails for links on not just reddit, but Facebook, Twitter, various chat clients, I think several Wordpress plugins, etc.
https://phabricator.wikimedia.org/T33338