Screenshot Generator

Screenshot Generator takes screenshots of posts and pages when they are updated. These screenshots can be used for e.g. previews in social media.

Author:Lasse Bunk (profile at wordpress.org)
WordPress version required:4.0.0
WordPress version tested:4.2.2
Plugin version:0.1.7
Added to WordPress repository:04-05-2015
Last updated:05-05-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/lassebunk/screenshot-gener...
Total downloads:1 572
Active installs:10+
plugin download
Click to start download

Screenshot Generator is a WordPress plugin that takes screenshots of posts for social media etc. when they are updated. It uses PhantomJS to do this.

Why? When developing Toptrust, I was tired of manually adding images of posts when sharing on social media. This was especially true for pages that had no featured/thumbnail images. I wanted screenshots to be taken automatically, and so Screenshot Generator was born.

Usage

When you update a post or page, a screenshot is automatically taken in the background. After a few seconds, the screenshot URL is saved to the post's meta key _scrgen_screenshot.

Screenshots on social media

An og:image and twitter:image:src is automatically added to the meta tags when viewing the post. These are only added if the post doesn't have a thumbnail, in which case the plugin expects the thumbnail to be added by you or another plugin. You can change this in the plugin settings page.

Retrieving screenshots manually

If you want to retrieve the screenshot manually, you can do so inside a post:

<img src="<?php echo scrgen_screenshot(); ?>" />

Screenshots