Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

pluswerk/screenshot-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot-docker

Opinionated screenshot Docker Image

example docker-compose.yml:

version: '3'

services:
  puppeteer:
    image: pluswerk/screenshot
    ports:
    - 8999:3000

To take a screenshot from an url send a Request with your url and options in the body.

curl -X POST --header "Content-Type: application/json" -d '{"url":"https://github.com/pluswerk/screenshot-docker","width":1024,"height":1301,"isMobile":false}' http://localhost:8999/ > screenshot.png

Options

Option Type Default Description
url String N/A URL to the website from which a screenshot should be taken
width Number 1024 width of the target window
height Number 1301 height of the target window
isMobile Boolean false show target Page in mobile view