Hello,
I am unable to run below code on Linux Mint it gets stuck for longtime.
var fs = require('fs');
var screenshot = require('node-webkit-screenshot');
screenshot({
url : 'http://nisos.ngo.karmaworld.co/',
width : 1024,
height : 768,
port:5000
}).then(function(buffer){
console.log(buffer)
fs.writeFile('./out.png', buffer, function(){
// This will close the screenshot service
screenshot.close();
exit(1);
});
});
Hello,
I am unable to run below code on Linux Mint it gets stuck for longtime.
var fs = require('fs');
var screenshot = require('node-webkit-screenshot');
screenshot({
url : 'http://nisos.ngo.karmaworld.co/',
width : 1024,
height : 768,
port:5000
}).then(function(buffer){
console.log(buffer)
fs.writeFile('./out.png', buffer, function(){
// This will close the screenshot service
screenshot.close();
exit(1);
});
});