@ -65,6 +65,9 @@ image.resizeImage = function (data, callback) {
}
},
function (image, next) {
if (data.write === false) {
return next();
image.write(data.target || data.path, next);
], function (err) {
@ -57,7 +57,8 @@ module.exports = function (User) {
path: picture.path,
extension: extension,
width: imageDimension,
height: imageDimension
height: imageDimension,
write: false,
}, next);
function (next) {