This is a microservice written in Javascript for Aliyun Function Compute NodeJS FaaS that makes a screenshot of a web page, using puppeteer and chromium.
The URL of the page to be screenshoted is passed via query parameter in the URL of the function.
/webpage-screenshot?url=https://www.example.com
The JPEG image of the captured screen will be returned.
- A Dockerfile is provided as a guide. You might need to customize it.
- The FC is working in Web Server mode, so express is used.
Copyright (c) 2023 Rodolfo González González.
Read the LICENSE file.