UXL Screenshot Generator

Description

Go to Tools > UXL Screenshot Generator and press “Generate Screenshot”. The front
page is shown in a 1200 x 900 browser viewport, converted to a JPG and added to
the Media Library. The image contains the web page only: no browser window,
toolbars, scrollbars or WordPress admin bar.

The plugin is self-contained. It does not use any external service or
third-party library: the page is rendered by the administrator’s own browser
using the script in assets/admin.js, and the finished image is uploaded to this
site.

Only administrators (users who can “manage_options” and “upload_files”) can use
the tool.

How it works

  1. The front page is loaded in an iframe sized 1200 x 900. For this request the
    admin bar is hidden and the page is rendered as a logged-out visitor sees it.
  2. The part of the page inside the viewport is copied together with the styles
    the browser has computed. Images and web fonts are embedded.
  3. The copy is painted to a canvas, exported as a JPG and uploaded.

Notes and limitations

  • Use a current desktop version of Chrome, Edge or Firefox.
  • The dashboard and the front page must be on the same address (same domain and
    same http/https), otherwise browsers forbid reading the page.
  • Content inside embedded frames (YouTube players, maps, etc.) cannot be read by
    a browser script and is shown as an empty box of the same size.
  • Images, fonts and stylesheets hosted on another domain that the browser may
    not read directly are fetched by this site itself so they can be included.
  • Anything a visitor would see on arrival (for example a cookie banner) is part
    of the screenshot.

Filters

  • uxl_screenshot_generator_render_as_visitor (bool, default true)
  • uxl_screenshot_generator_jpeg_quality (int 1-100, default 90)
  • uxl_screenshot_generator_settle_delay (int milliseconds, default 800)

Screenshots

Reviews

There are no reviews for this plugin.

Contributors & Developers

“UXL Screenshot Generator” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.2

  • Fixed content shifting upwards when it follows a block whose last item has a bottom margin (most visible on blocks with a negative top margin).
  • Duotone filters and other in-page SVG filters, masks and clip paths are now included.

1.0.1

  • Fixed images shown in the wrong place inside sliders and other scrolled areas.
  • Fixed placeholder text in form fields losing its colour and style.
  • Off-screen items no longer collapse and shift their neighbours.

1.0.0

  • Initial release.