Based on NodeJs and Puppeteer
https://github.com/Giorgospago/puppeteer-screenshot-api
Simple docker command
docker run -d -p 3030:3030 giorgospago/puppeteer-tools
With docker-compose.yml
file
version: "3.7"
services:
puppeteer-tools:
image: giorgospago/puppeteer-tools
ports:
- 3030:3030
volumes:
- type: bind
source: ./your-data-directory
target: /var/www/public
https://your-endpoint.com/image?url=https://google.com
https://your-endpoint.com/image?url=https://google.com
Result:
{
"success": true,
"url": "https://your-endpoint.com/videos/google.com-1920x1080-00000-000-000-000-0000000.mp4"
}