// 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) {
+ // Ignore anything that is neither PNG nor JPEG. GIFs are not supported
+ // due to the support for animations.
+ if (['image/png', 'image/jpeg'].indexOf(file.type) === -1) {
arr.push(file);
return arr;
}