node-phantom
node-phantom copied to clipboard
Pass paramaters to render?
Looking at the source, looks like pageCreated -> render only accepts filename and callback params... Any way to pass further options to the native phantom render method....
eg {format:png}
@starsinmypockets: Where do you see that the native render method supports a file types options? I'm looking at the docs for the render method here:
http://phantomjs.org/api/webpage/method/render.html
It says:
Currently, the output format is automatically set based on the file extension.
I don't see the abilty to pass in a specific file type as you are suggesting.
Is the problem resolved ? page.render('google_home.jpeg', {format: 'jpeg', quality: '100'});