Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Screenshot One

2 sites No security coverage
View on drupal.org

This module provides a service to generate screenshots from the Screenshot One service and integrates with the AI Automator module to automatically convert link fields into image fields. It can capture full-page or custom-sized screenshots and remove cookie banners.

Screenshot one is a module that currently have two things available for it. The one thing is a service where you can generate screenshots from the Screenshot One service for any third party module that would want to use it.

The other core feature is that it has two AI Automator types for the AI Automator module that can be found in the AI module. These makes it possible to take a link field and either automate it into an Image field or a Media Image field.

Note that this is the follow up module of the AI Interpolator Screenshot and makes that module obsolete.

Features

  • It can remove cookie banners automatically on the webpage you want to screenshot.
  • It can screenshot the full web page, not just over the fold.
  • (or) you can screenshot the exact dimensions you set.

Requirements

  • Requires an account at Screenshot One. You can test 100 screenshots for free.
  • To use it, you need to use a third party module using the service. Currently its only usable with the AI Automator submodule of the AI module

How to setup with AI Automator

  1. Install the AI module.
  2. Install this module.
  3. Visit /admin/config/screenshot-one/settings and add your api and secret keys from your Screenshot One account.
  4. Create some entity or node type with a link field.
  5. Create either an Image or Media field on the same entity.
  6. Enable AI Automator checkbox and configure it.
  7. Create an entity of the type you generated, fill in some link and save.
  8. The screenshot will be filled out.

Use the service

If you are a third party module that wants to use this service, you can take this example code for screenshotting Googles firstpage.

$screenshot_one = \Drupal::service('screenshot_one.api');
// Configure how you want it to run.
$screenshot_config = [
  'full_page' => TRUE, // If it should do a full page screenshot. Othewise width and height parameters.
  'delay' => 1, // Wait 1 second before taking the screenshot.
  'format' => 'jpg', // Get it as jpg.
  'image_quality' => 90, // 90% image quality.
  'selector' => '#content', // Only get the content id and what is in it.
];
// Take the screenshot.
$binary = $screenshot_one->screenshotUrl('https://www.google.com', $config);
...code to create image or whatever from binary.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0-rc2 Pre-release 10–11 Dec 9, 2024