phantomazzi ia a simple PhantomJS script to rasterize each DOM element of the given class to a separate PNG file
- Install PhantomJS
- Clone repo or download phantomazzi.js
$ 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' ... )
$ phantomjs phantomazzi.js http://foo.com/bar/ box_wrapper /foo/my_box