Skip to content

Commit 91b76d7

Browse files
committed
去除image resize
1 parent efe6040 commit 91b76d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/uploadhandler.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = function (options) {
118118
}
119119

120120
var generatePreviews = function () {
121-
if (options.imageTypes.test(fileInfo.name)) {
121+
/*if (options.imageTypes.test(fileInfo.name)) {
122122
_.each(options.imageVersions, function (value, version) {
123123
counter++;
124124
// creating directory recursive
@@ -133,7 +133,7 @@ module.exports = function (options) {
133133
}, finish);
134134
});
135135
});
136-
}
136+
}*/
137137
}
138138

139139
mkdirp(options.uploadDir() + '/', function(err, made) {

0 commit comments

Comments
 (0)