Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

padding

  • Loading branch information...
commit 8352c4e982593cf9f536663d019acd17eac6a674 1 parent 91056c5
@tj authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test
View
4 test
@@ -18,7 +18,9 @@ var img = new Image;
img.onload = function(){
canvas.width = img.width;
- canvas.height = img.height;
+ canvas.height = img.height + 50;
+ ctx.fillStyle = 'white';
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.drawImage(img, 0, 0);
fs.writeFile(out, canvas.toBuffer(), function(err){
if (err) throw err;
Please sign in to comment.
Something went wrong with that request. Please try again.