Title: Screenshot Generator
Author: lassebunk
Published: <strong>4 maio, 2015</strong>
Last modified: 5 maio, 2015

---

Pesquisar plugins

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://s.w.org/plugins/geopattern-icon/screenshot-generator.svg)

# Screenshot Generator

 Por [lassebunk](https://profiles.wordpress.org/lassebunk/)

[Baixar](https://downloads.wordpress.org/plugin/screenshot-generator.0.1.7.zip)

 * [Detalhes](https://br.wordpress.org/plugins/screenshot-generator/#description)
 * [Avaliações](https://br.wordpress.org/plugins/screenshot-generator/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/screenshot-generator/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/screenshot-generator/#developers)

 [Suporte](https://wordpress.org/support/plugin/screenshot-generator/)

## Descrição

Screenshot Generator is a WordPress plugin that takes screenshots of posts for social
media etc. when they are updated.
 It uses [PhantomJS](http://phantomjs.org/) to
do this.

_Why?_ When developing [Toptrust](http://toptrust.dk), 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(); ?>" />
    ```

### Contributing

Contributions are appreciated and very welcome. You can contribute in the
 plugin’s
[GitHub repository](https://github.com/lassebunk/screenshot-generator).

### Credits

The screenshot functionality is adapted from Microweber’s
 [Screen](https://github.com/microweber/screen)
code.

## Capturas de tela

 * [[
 * How the screenshot will look when shared in social media.
 * [[
 * The settings page.

## Instalação

 1. Download the plugin to `wp-content/plugins`.
 2. Install PhantomJS.
 3.  * **Mac:**
     *     ```
             $ brew install phantomjs
           ```
       
     * Or if this fails, [download from here](https://github.com/eugene1g/phantomjs/releases).
     * **Linux:**
     *     ```
             $ apt-get install phantomjs fontconfig freetype*
           ```
       
 4. Make sure the `phantomjs` binary is in your PHP’s `PATH`.
 5. If you can’t modify your `PATH`, you can set the `PHANTOMJS` constant to the
     binary’s
    path and this will be used:
 6.     ```
          define('PHANTOMJS', '/usr/local/bin/phantomjs');
        ```
    
 7. Create a folder called `wp-content/screenshots` and grant write permissions.
 8. Update a post.

## Avaliações

Não há avaliações para este plugin.

## Colaboradores e desenvolvedores

“Screenshot Generator” é um programa de código aberto. As seguintes pessoas contribuíram
para este plugin.

Colaboradores

 *   [ lassebunk ](https://profiles.wordpress.org/lassebunk/)

[Traduzir o “Screenshot Generator” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/screenshot-generator)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/screenshot-generator/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/screenshot-generator/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/screenshot-generator/)
por [RSS](https://plugins.trac.wordpress.org/log/screenshot-generator/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versão **0.1.7**
 *  Última atualização **11 anos atrás**
 *  Instalações ativas **10+**
 *  Versão do WordPress ** 4.0.0 ou superior **
 *  Testado até **4.2.39**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/screenshot-generator/)
 * Tags
 * [preview](https://br.wordpress.org/plugins/tags/preview/)[screenshot](https://br.wordpress.org/plugins/tags/screenshot/)
   [social](https://br.wordpress.org/plugins/tags/social/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/screenshot-generator/advanced/)

## Classificações

Ainda não foi enviada nenhuma avaliação.

[Your review](https://wordpress.org/support/plugin/screenshot-generator/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/screenshot-generator/reviews/)

## Colaboradores

 *   [ lassebunk ](https://profiles.wordpress.org/lassebunk/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/screenshot-generator/)