dataURIPromises.push( jimp .read(facesDataList[i].image_url) .then((image) => // resize the image to be thumbnail size image.resize(45, 45).getBase64Async(jimp.MIME_PNG) ) // promise.all rejects if one of the promises in the array gets rejected, // without considering whether or not the other promises have resolved. // This is to make sure Promise.all continues evluating all promises inspite some rejections. .catch(() => undefined) );