Permalink
Browse files

this example now uses the new encodeSync function

  • Loading branch information...
1 parent 2f94fe9 commit 1a5f26bb3400dfc33616b92e7aa6bd05eac9f273 @pkrumins committed Aug 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/dynamic-jpeg-stack.js
View
2 examples/dynamic-jpeg-stack.js
@@ -28,7 +28,7 @@ files.forEach(function(file) {
jpegStack.push(buf, dim.x, dim.y, dim.w, dim.h);
});
-fs.writeFileSync('dynamic.jpg', jpegStack.encode(), 'binary');
+fs.writeFileSync('dynamic.jpg', jpegStack.encodeSync(), 'binary');
var dims = jpegStack.dimensions();

0 comments on commit 1a5f26b

Please sign in to comment.