Commit 2faca8a26207e316f21cadb9222ed640b7e76c16
removeExif can be an observable
Anders Rune Jensen committed on 5/30/2018, 7:07:21 PMParent: d801cfacf24b25bc56f7812fe6ba1fd287ef9a56
Files changed
blob/html/input.js | changed |
blob/html/input.js | |||
---|---|---|---|
@@ -30,9 +30,10 @@ | |||
30 | 30 … | ||
31 | 31 … | getFileData(file, function(fileData) { | |
32 | 32 … | var orientation = getOrientation(fileData) | |
33 | 33 … | ||
34 | - if (opts.removeExif) | ||
34 … | + if ((typeof opts.removeExif == 'function' && opts.removeExif()) || | ||
35 … | + opts.removeExif) | ||
35 | 36 … | fileData = removeExif(fileData, orientation) | |
36 | 37 … | ||
37 | 38 … | // handle exif orientation data and resize | |
38 | 39 … | if (orientation >= 3 || opts.resize) { |
Built with git-ssb-web