Title: Screenshot Generator
Author: lassebunk
Published: <strong>4 ພຶດສະພາ 2015</strong>
Last modified: 5 ພຶດສະພາ 2015

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

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

# Screenshot Generator

 ໂດຍ [lassebunk](https://profiles.wordpress.org/lassebunk/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/screenshot-generator.0.1.7.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/screenshot-generator/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/screenshot-generator/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/screenshot-generator/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/screenshot-generator/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/screenshot-generator/)

## ຄຳອະທິບາຍ

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.

## ພາບໜ້າຈໍ

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

## ການຕິດຕັ້ງ

 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.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Screenshot Generator” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “Screenshot Generator” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/screenshot-generator)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/screenshot-generator/), 
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/screenshot-generator/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/screenshot-generator/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/screenshot-generator/?limit=100&mode=stop_on_copy&format=rss).

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.1.7**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **11 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 4.0.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.2.39**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/screenshot-generator/)
 * ແທັກ
 * [preview](https://lo.wordpress.org/plugins/tags/preview/)[screenshot](https://lo.wordpress.org/plugins/tags/screenshot/)
   [social](https://lo.wordpress.org/plugins/tags/social/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/screenshot-generator/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

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

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/screenshot-generator/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/screenshot-generator/)