twolfson/phantomjssmith — pull request #1 by adamschroder (2013-05-06 13:53:39+00:00)
Title: Source image dimensions are cropped at 400x300 pixels

Since stats.js opens the image directly on a default phantom viewport, the dimensions are clipped at 400x300.

setting phantom viewport to a larger size fixes the issue.

PhantomJS won't fix this https://github.com/ariya/phantomjs/issues/10191, so we need to set viewportSize.