Skip to content

phantomazzi ia a simple PhantomJS script to rasterize each DOM element of the given class to a separate PNG file

Notifications You must be signed in to change notification settings

daftcode/phantomazzi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

phantomazzi - DOM rasterizer

phantomazzi ia a simple PhantomJS script to rasterize each DOM element of the given class to a separate PNG file

Installation

  1. Install PhantomJS
  2. Clone repo or download phantomazzi.js

Usage

$ phantomjs phantomazzi.js URL CLASS OUTPUT

--
URL : full url to the page
CLASS : class name of the DOM elements (eg. 'box_wrapper')
OUTPUT : output filename without extension (eg. for 'path/test' you'll get files 'path/test_0.png', 'path/test_1.png' ... )

Example

$ phantomjs phantomazzi.js http://foo.com/bar/ box_wrapper /foo/my_box

About

phantomazzi ia a simple PhantomJS script to rasterize each DOM element of the given class to a separate PNG file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published