Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 924 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 924 Bytes

content-screenshot

Convert html and svg to png using the Blink-based rendering engine inside Chromium.

usage: contentScreenshot.py [-h] [--content-shell CONTENTSHELL]
                            [--flags FLAGS] [--width WIDTH] [--height HEIGHT]
                            [--no-svg-mode NOSVGMODE]
                            input output

Examples

Convert example.html to a png image:

$ ./contentScreenshot.py example/example.html html.png --width=245 --height=300

example.html as an image

ContentScreenshot can also be used as a modern svg->png converter. Lets convert octocat.svg:

$ ./contentScreenshot.py example/octocat.svg svg.png --width=200

example.html as an image