Motif—Custom Open Graph Images for Sharing Content
When sharing content on social networks, images are a key driver of user engagement. But creating them can be time-consuming due to the optimum size for different platforms and devices. For example, Facebook recommends 1200×630 pixels for high-resolution displays, and Twitter recommends at least 630×150.
These large sizes may be scaled down for some devices, resulting in slower page load speeds. Add in the need for consistent branding across many pieces of content and it’s enough to drive a designer or social media manager crazy.
With just the link to your content, Motif scans the page’s metadata and images to assemble a best-guess draft image that you can then tweak with a few easy-to-use fields. It pulls in your logo, brand colors, the article title, and featured image to create a shareable image that automatically adapts to whatever container it’s in. With Motif, you only have to plug in the URL—it does all the hard work for you.
Let’s see how it works in practice. We’ll start with a piece of content we want to share:
This page has a lot of visual elements we could choose from to create our image, but it already has the key image defined in its
og:image metadata, so if we plug the page URL into Motif, we get this:
From here, we can adjust as needed. For example, we should move the text down to avoid running it over the actors’ faces, and then adjust the logo position so it doesn’t overlap the text in that new position.
We’ll also add some padding on the logo to move it away from the edge of the image, and remove its white background by pointing to a version of the file without one. With just those small changes, we get this:
Now that we have the image the way we want, all we have to do is grab the URL provided and paste it into Facebook, Twitter, or anywhere else we want to share it. The Motif image will adjust its width to the container it’s in. Here are a couple of examples:
If you have a CMS-powered site like WordPress, Squarespace, Rails, or Jekyll, it only takes a few minutes to set up Motif for every current and future page on your website. Simply use the same URL that Motif provides, but replace the
image_url (optional) query string parameters using your CMS’ template language.
If you have any questions or thoughts, we’d love to hear from you on Twitter.