Set absolute URL for og:image meta tags.
Last updated 8 months ago by lukechilds .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parcel-plugin-ogimage 
SYNC missed versions from official npm registry.


Set absolute URL for og:image meta tags.

Build Status npm

Sets absolute URLs for og:image meta tags. This is required by the spec and relative URLs will not work on some sites such as Twitter.

You can fix this directly in parcel by using --public-url, however now all your URLs are hardcoded to absolute URLs which may be undesirable and can break things like prerendering.

This plugin uses the value of the og:url meta tag to convert og:image to an absolute URL.


npm install parcel-plugin-ogimage


Just install this package as a development dependency. Parcel will automatically call it when building your application.

You must have both og:image and og:url meta tags:

<meta property="og:image" content="card.png">
<meta property="og:url" content="">

Parcel will generate that into something like this:

<meta property="og:image" content="/card.9190ce93.png">
<meta property="og:url" content="">

parcel-plugin-ogimage will then update the og:image with an absolute URL:

<meta property="og:image" content="">
<meta property="og:url" content="">


MIT © Luke Childs

Current Tags

  • 1.2.0                                ...           latest (8 months ago)

5 Versions

  • 1.2.0                                ...           8 months ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (1)
  • xo ^0.23.0
Dependents (0)

Copyright 2014 - 2016 © |