brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 286 forks source link

webshot doesnt render images inside a local html file. #114

Open SuhasUnited90 opened 9 years ago

SuhasUnited90 commented 9 years ago

Is there any configuration that needs to be passed on in addition to siteType:'file' and phantomConfig: {'ignore-ssl-errors': 'yes','ssl-protocol':'any'}} ?

zbyte64 commented 9 years ago

I had to add a base tag in order for relative assets to appear:

https://stackoverflow.com/questions/20100272/phantomjs-can-i-access-relative-assets-from-a-page-with-dynamically-set-content