PhantomJS - renderBuffer()



The renderBuffer method takes the capture of the webpage to an image buffer, which can be directly sent to the server. The formats supported are PNG, GIF and JPEG.

Syntax

Its syntax is as follows −

var wpage = require('webpage').create(); 
wpage.renderBuffer(format, quality);
phantomjs_webpage_module_methods.htm
Advertisements