deanmao / node-chimera

A new kind of headless webkit integration for nodejs; a great alternative to phantomjs.
http://www.deanmao.com/2012/08/13/enter-chimera/
MIT License
847 stars 45 forks source link

Enhanced image rendering methods #37

Open dhendo opened 11 years ago

dhendo commented 11 years ago

Added new methods to the native module to allow:

perform() can now also take an option "html" instead of "url" to load the html directly.

A combination of these new methods will allow a streamlined pipeline if you wish to render the contents of a locally held snippet of html and return it directly via a webserver. This will avoid a number of unnecessary file save/loads or converting image data to Base64.

dhendo commented 11 years ago

Notes:

dhendo commented 11 years ago

Gist: https://gist.github.com/dhendo/6020429