// As our resizer is based on Pica it will use multiple workers per image if possible.
promise = Array.prototype.reduce.call(files, (function (acc, file) {
return acc.then((function (arr) {
+ // Ignore anything that is not one of the 3 basic image types.
+ if (['image/png', 'image/gif', 'image/jpeg'].indexOf(file.type) === -1) {
+ arr.push(file);
+ return arr;
+ }
+
var timeout = new Promise(function (resolve, reject) {
// We issue one timeout per image, thus multiple timeout
// handlers will run in parallel