diff rasterize.js @ 33:5088859ace72

Merge branch 'master' of git://gitorious.org/nodescore/nodescore Conflicts: nodescore www/m/thumbs/1.png www/m/thumbs/2.png www/m/thumbs/3.png www/m/thumbs/4.png www/m/thumbs/5.png www/m/thumbs/6.png
author tzara <rc-web@kiben.net>
date Sun, 19 Aug 2012 22:59:48 +0100
parents c4719d1b7633
children 7f0485e0d0ff
line wrap: on
line diff
--- a/rasterize.js	Sun Aug 19 22:58:36 2012 +0100
+++ b/rasterize.js	Sun Aug 19 22:59:48 2012 +0100
@@ -4,7 +4,7 @@
 
 top = system.args[3];
 
-page.clipRect = { top: top, left: 0, width: 1280, height: 800 }
+page.clipRect = { top: top, left: 0, width: 1000, height: 450 }
 
 if (system.args.length < 3 || system.args.length > 5) {
     console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]');
@@ -15,11 +15,11 @@
     output = system.args[2];
  
 
-    page.viewportSize = { width: 800, height: 800 };
+    page.viewportSize = { width: 1000, height: 450 };
     if (system.args.length > 4 && system.args[2].substr(-4) === ".pdf") {
         size = system.args[4].split('*');
         page.paperSize = size.length === 2 ? { width: size[0], height: size[1], margin: '0px' }
-                                           : { format: system.args[3], orientation: 'portrait', margin: '1cm' };
+                                           : { format: system.args[3], orientation: 'portrait', margin: '0cm' };
     }
     if (system.args.length > 5) {
         page.zoomFactor = system.args[5];