diff --git a/package.json b/package.json index 3c1432e3d999b18a1c66fc6debd265aead2aab51..0f2ebcf9ce273e643eb326c709322edff194f8c5 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "moment": "^2.12.0", "node-fs-extra": "^0.8.1", "node-sass": "^3.4.2", - "nodegit": "^0.11.7", + "nodegit": ">=0.11.7", "nunjucks": "^2.3.0", "nunjucks-date-filter": "^0.1.1", "sqlite-parser": "^0.14.3", diff --git a/sitegin/imageResizer.js b/sitegin/imageResizer.js index 47a473a79ba2acd198f9770eba050fdcbc6b0224..f3e7ae2e044f274149af0cca923330dae886c11c 100644 --- a/sitegin/imageResizer.js +++ b/sitegin/imageResizer.js @@ -12,9 +12,6 @@ var mkdirp = require('mkdirp'); var path = require('path'); module.exports = function(file, targetDir, width, height) { - return path.basename(file); -} -var rem = function(file, targetDir, width, height) { if(lwip && (width || height)) { let tmp = path.basename(file).split('.'); tmp.splice(-1,1); @@ -34,7 +31,7 @@ var rem = function(file, targetDir, width, height) { .writeFile(targetFile, function(err) { if(err) console.log(err); }); - } + }) } if(err) return console.log(err);