Pageres

Create screenshots of websites

Pageres

AI-generated

Overview

This node generates screenshots of websites or HTML snippets. It supports two input types: a URL of a website or raw HTML code. Users can specify the image resolution for the screenshot. The node is useful for capturing visual representations of web pages or HTML content, which can be used for documentation, testing, or monitoring purposes.

Use Case Examples

  1. Generating a screenshot of a webpage by providing its URL and desired resolution.
  2. Creating an image from a custom HTML snippet to visualize dynamic content or email templates.

Properties

Name Meaning
Input Type Specifies the source type for generating the image, either a URL or an HTML snippet.
URL The URL of the website to capture as an image. Only shown if Input Type is 'Url'.
HTML Snippet The HTML code to render and capture as an image. Only shown if Input Type is 'HTML'.
Image Resolution The resolution of the generated image, e.g., '480x320'.

Output

Binary

The node outputs the generated screenshot as binary data in PNG format, including file name and extension metadata.

JSON

  • error - Error message if image generation fails and continueOnFail is enabled.

Dependencies

  • pageres library for capturing screenshots

Troubleshooting

  • Common issues include invalid URLs or malformed HTML causing screenshot generation to fail.
  • If the node throws an error during image generation, enabling 'Continue On Fail' will capture the error message in the output JSON instead of stopping execution.

Discussion