Skip to content

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

Notifications You must be signed in to change notification settings

kleopatra999/content-screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published