WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

JSM's Screenshot Machine Shortcode

Shortcode to include images from Screenshot Machine in your content.

Use the ssm shortcode in your content with the following arguments:

  • key="{account key}"
  • url="{website url}"
  • size="{size letter}" (default=T)
  • format="{jpg|png|gif}" (default=jpg)
  • days="{cache expiration}" (default=14)
  • wait="{wait in ms}" (default=200)
  • title="{href title}"
  • link="{yes|no}" (default=yes)
  • target="{link target}" (default=_blank)
  • refresh="{yes|no}" (default=yes)

You can find the {account key} on your Screenshot Machine account/settings page.

The {website url} is the web page URL to capture into a screenshot.

Valid {size letter} values are:

  • T = Width 120 x Height 90
  • S = Width 200 x Height 150
  • E = Width 320 x Height 240
  • N = Width 400 x Height 300
  • M = Width 640 x Height 480
  • L = Width 800 x Height 600
  • X = Width 1024 x Height 768

{jpeg|png|gif} is the image format to use (default is jpg).

{cache expiration} is the number of days a screenshot should be used before a new one is created.

{wait in ms} is the number of milliseconds to wait before capturing the screenshot.

{href title} is the title text for the image alt and link title.

The link yes/no value will determine if the image is linked to the web page URL or not.

The {link target} default will open links in a new window/tab. An empty string, '_self', '_top', '_parent', and a framename are also valid.

The refresh parameter includes javascript to retry the image every second until it's available (for a maximum of 10 seconds).

Example:

[ssm key="abc123" url="http://surniaulula.com/extend/plugins/screenshot-machine-shortcode/" size="S"]

Requires: 3.7 or higher
Compatible up to: 4.7
Last Updated: 2 weeks ago
Active Installs: 40+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1