Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

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

Based on my phantomjs container.

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 ubermuda/screenshot
Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]
paper (pdf output) examples: "5in*7.5in", "10cm*20cm", "A4", "Letter"
image (png/jpg output) examples: "1920px" entire page, window width 1920px
                                "800px*600px" window, clipped to 800x600

$ docker run -v $PWD:/srv ubermuda/screenshot http://www.google.com/ google.com.png 1920px
Docker Pull Command
Owner
ubermuda
Source Repository

Comments (0)