The ImageBitmap could not be allocated.
WeiRu1016 opened this issue · comments
WeiRu1016 commented
chrome version: 81.0.4044.113
pica.resize(originImg, canvas)
some picture error:
DOMException: Failed to execute 'createImageBitmap' on 'Window': The ImageBitmap could not be allocated.
but use canvas, pica.resize(originCanvas, canvse) is success
Vitaly Puzrin commented
https://github.com/nodeca/pica/blob/master/index.js#L464
Could you add here
.cach(e) {
return null;
}
then rebuild dist and tell me result
Vitaly Puzrin commented
No ideas, how createImageBitmap()
can exist but fail to execute.
Vitaly Puzrin commented
Published fix. Thanks for your help!