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.
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
Screenshots on social media
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(); ?>" />
Contributions are appreciated and very welcome. You can contribute in the
plugin’s GitHub repository.
The screenshot functionality is adapted from Microweber’s
- Download the plugin to
$ brew install phantomjs
Or if this fails, download from here.
$ apt-get install phantomjs fontconfig freetype*
Make sure the
phantomjsbinary is in your PHP’s
If you can’t modify your
PATH, you can set the
PHANTOMJSconstant to the
binary’s path and this will be used:
Create a folder called
wp-content/screenshotsand grant write permissions.
Update a post.
There are no reviews for this plugin.
Contributors & Developers
“Screenshot Generator” is open source software. The following people have contributed to this plugin.حصہ پاوݨ آلے