Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Add support for link rel="image_src"? #46

Closed
pdehaan opened this issue Aug 23, 2016 · 0 comments
Closed

Add support for link rel="image_src"? #46

pdehaan opened this issue Aug 23, 2016 · 0 comments
Labels
ARCHIVED CLOSED at time of archiving

Comments

@pdehaan
Copy link
Contributor

pdehaan commented Aug 23, 2016

Randomly saw this, and surprisingly is/was a thing:

<link rel="image_src" href="http://uncrate.com/p/2016/08/pf-flyer.jpg" />

— via http://uncrate.com/stuff/pf-flyers-x-todd-snyder-grounder/

That site also has the proper open graph tags, so we find the thumbnail anyways, but not sure if we want to add this [here] as yet another fallback.

const imageRules = buildRuleset('image', [
  ['meta[property="og:image:secure_url"]', node => node.element.content],
  ['meta[property="og:image:url"]', node => node.element.content],
  ['meta[property="og:image"]', node => node.element.content],
  ['meta[property="twitter:image"]', node => node.element.content],
  ['meta[name="thumbnail"]', node => node.element.content],
]);

Ref: http://stackoverflow.com/questions/19274463/what-is-link-rel-image-src
Ref: http://www.niallkennedy.com/blog/2009/03/enhanced-social-share.html

@cknowles-admin cknowles-admin added the ARCHIVED CLOSED at time of archiving label Feb 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

2 participants