diff --git a/src/lib/media/manip.web.ts b/src/lib/media/manip.web.ts index bdf6836a..522aa2e5 100644 --- a/src/lib/media/manip.web.ts +++ b/src/lib/media/manip.web.ts @@ -132,6 +132,9 @@ function createResizedImage( ctx.drawImage(img, 0, 0, w, h) resolve(canvas.toDataURL('image/jpeg', quality)) }) + img.addEventListener('error', ev => { + reject(ev.error) + }) img.src = dataUri }) }