You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Web Canvas API in Deno for createImageBitmap supports blobs. Added earlier this year in #21898
Observations
Currently seeing failures against standard jpg/pngs. The same code in a non-Deno environment, e.g. browser, works. Omission of jpg seems intentional from the deno library , but is worth bringing up as its widely supported in web apis
const jpg = await loadImage("https://deno.com/images/artwork/deno_city.jpeg")
InvalidStateError: Unsupported type 'image/jpeg'
at ext:deno_canvas/01_image.js:236:15
at eventLoopTick (ext:core/01_core.js:175:7)
const png = await loadImage("https://deno.com/images/artwork/deno_news.png")
TypeError: Color type 'Rgb8' not supported
at ext:deno_canvas/01_image.js:241:50
at eventLoopTick (ext:core/01_core.js:175:7)
Environment
The text was updated successfully, but these errors were encountered:
Version: Deno 2.0.0-rc10
The Web Canvas API in Deno for createImageBitmap supports blobs. Added earlier this year in #21898
Observations
Currently seeing failures against standard jpg/pngs. The same code in a non-Deno environment, e.g. browser, works. Omission of jpg seems intentional from the deno library , but is worth bringing up as its widely supported in web apis
Environment
The text was updated successfully, but these errors were encountered: