I was doing some research in many websites today and, to avoid looking at them manually, I prepared phantomjs to render them using the solution proposed here. Nothing special. Looping through a website array and rendering all the resulting pages.
What's strange is that there are some websites that are not being properly rendered. Among others, I have this one: http://www.telegraaf.nl/
To simplify, I created another script that only runs this page:
var page = require('webpage').create();
page.viewportSize = { width: 1920, height: 960 };
page.clipRect = { top: 0, left: 0, width: 1920, height: 960 };
page.open('http://www.telegraaf.nl/', function(status) {
page.render("screenshot.png");
phantom.exit();
});
It ends in no screenshot. Tested with any other one, and perfectly working. Did I overlook something?