piether / docker-screenshot

A Docker image to take screenshots of HTTP URLs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A web screenshot container based on phantomjs's rasterize.js.

Based on a phantomjs container.

Build

$ git clone https://github.com/piether/docker-screenshot.git
$ cd docker-screenshot
$ docker build -rm -t screenshot .

Usage

Because phantomjs runs inside the container, you need to bind mount a volume to retrieve the screenshot.

The container is configured to write screenshots to /srv, so bind-mounting $PWD (or whatever directory you want to screenshot created in) to it seems like a good idea.

$ docker run -v $PWD:/srv screenshot http://www.alfred-shop.de/artikel/00-PVM04059DPNS sc3.png 1920px 2000

About

A Docker image to take screenshots of HTTP URLs

License:MIT License


Languages

Language:JavaScript 100.0%