Add screenshot width setting

This commit is contained in:
Gaël Métais
2016-01-12 00:09:35 +01:00
parent c68962e2f2
commit 8bd3a1edde
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ var ApiController = function(app) {
if (run.params.screenshot) {
// Replace the empty promise created earlier with Q.resolve()
screenshotPromise = screenshot.toThumbnail(400)
screenshotPromise = screenshot.toThumbnail(serverSettings.screenshotWidth || 400)
// Read screenshot
.then(function(screenshotBuffer) {
+1
View File
@@ -2,6 +2,7 @@
"serverPort": 80,
"phantomasEngine": "webkit",
"googleAnalyticsId": "",
"screenshotWidth": 400,
"authorizedKeys": {
+1
View File
@@ -2,6 +2,7 @@
"serverPort": 8383,
"phantomasEngine": "webkit",
"googleAnalyticsId": "",
"screenshotWidth": 400,
"authorizedKeys": {