Skip to content

Commit d3d1611

Browse files
committed
option renamed: customArgs -> imageArgs
1 parent 2faadb8 commit d3d1611

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

History.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.0.8 / 2013-01-01
2+
==================
3+
4+
* #11 update resize with cropping custom options : imageArgs
5+
16
0.0.7 / 2012-12-25
27
==================
38

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ Other options and their default values:
234234
height: 80
235235
}
236236
},
237+
imageArgs: ['-auto-orient'],
237238
accessControl: {
238239
allowOrigin: '*',
239240
allowMethods: 'OPTIONS, HEAD, GET, POST, PUT, DELETE'

lib/uploadhandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = function (options) {
109109
height: opts.height,
110110
srcPath: options.uploadDir() + '/' + fileInfo.name,
111111
dstPath: options.uploadDir() + '/' + version + '/' + fileInfo.name,
112-
customArgs: opts.customArgs || ['-auto-orient']
112+
customArgs: opts.imageArgs || ['-auto-orient']
113113
}, finish);
114114
});
115115
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"express",
99
"middleware"
1010
],
11-
"version": "0.0.7",
11+
"version": "0.0.8",
1212
"dependencies": {
1313
"formidable": ">=1.0.11",
1414
"imagemagick": ">=0.1.2",
@@ -28,6 +28,6 @@
2828
"scripts": {
2929
"test": "echo \"Error: no test specified\" && exit 1"
3030
},
31-
"_id": "jquery-file-upload-middleware@0.0.7",
31+
"_id": "jquery-file-upload-middleware@0.0.8",
3232
"license": "MIT"
3333
}

0 commit comments

Comments
 (0)