How to setup webshot width and height
richthedev opened this issue · 2 comments
richthedev commented
I see there is a default width and height for the PhantomJS viewport in the Webshot module. But I can't seem to find a way to configure those parameters before taking a screenshot. The screenshot class is a singleton and I don't know how to properly pass data to the initialize method.
richthedev commented
Found out I just need to set Webshot.height and Webshot.width prior to the screenshot.
richthedev commented
After some tests, it seems that the above solution does not work after all. It works on the first call to ws.capture but then the dimensions are reset for some reason. Am I missing something?