Sign inSign up

pluswerk/screenshot-docker

By pluswerk

•Updated over 7 years ago

Opinionated screenshot Docker Image

Image
0

195

pluswerk/screenshot-docker repository overview

⁠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
OptionTypeDefaultDescription
urlStringN/AURL to the website from which a screenshot should be taken
widthNumber1024width of the target window
heightNumber1301height of the target window
isMobileBooleanfalseshow target Page in mobile view

Tag summary

Content type

Image

Digest

Size

516.6 MB

Last updated

over 7 years ago

docker pull pluswerk/screenshot-docker