I am using phantomjs to rasterize an html page that I'm creating dynamically with javascript/php. It looks fine when testing on my localhost, but when testing on an apache server, it appears to blow the image up, causing it to be formatted wrong (extends to two pages instead of one, etc).

Does anyone know how I can stop this from happening?

(Sorry, just created this account and it won't let me post screenshots yet)