kevinschaul/depict — pull request #12 by mhkeller (2013-11-07 04:51:05+00:00)
Title: Adding browser-width, delay time and console.logs within Phantom browser support

Sometimes browsers default to the mobile version when taking a screenshot. This adds the ability to set a width in pixels.

PhantomJS waits for all of the page assets to load before taking the picture, but I've found that it doesn't wait for things like interactive maps. This pull request adds the option to specify a delay, in milliseconds after the page has loaded before taking the screenshot.

I've also added on line 88 the ability to log values from the Phantom Browser. It took me a while to figure out why my logs weren't showing up so hopefully this saves someone that headache.

I gave it a minor version bump, feel free to adjust.