Skip to content

Commit

Permalink
Merge pull request #1 from EdJr/EdJr-patch-1
Browse files Browse the repository at this point in the history
Allow for processing multiple images, close #10
  • Loading branch information
edjr committed Oct 22, 2015
2 parents 7d55489 + c7c8092 commit 34ca0a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/MapSlicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ var fs = require("fs"),
flattenTiles = require("./util/flattenTiles"),
processLevel = require("./processLevel"),
processTile = require("./processTile"),
settingsSchema = require("./settingsSchema"),
sha1 = crypto.createHash('sha1');
settingsSchema = require("./settingsSchema");

/**
*
Expand Down Expand Up @@ -119,7 +118,7 @@ MapSlicer.prototype.wrapProgressTask = function MapSlicer_wrapProgressTask(task)
MapSlicer.prototype.collectTasks = function MapSlicer_collectTasks(imageWidth, imageHeight) {
var levels = calculateLevelData(imageWidth, imageHeight, this.options),
tasks = [],
patternMd5 = sha1.update(this.options.output).digest("hex");
patternMd5 = crypto.createHash('sha1').update(this.options.output).digest("hex");

this.emit("levels", levels);

Expand Down Expand Up @@ -151,4 +150,4 @@ MapSlicer.prototype.makeParallel = function MapSlicer_makeParallel(tasks) {
}.bind(this);
};

module.exports = MapSlicer;
module.exports = MapSlicer;

0 comments on commit 34ca0a8

Please sign in to comment.