denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.41k stars 5.18k forks source link

[feature request] createImageBitmap and Image #19533

Open josephrocca opened 1 year ago

josephrocca commented 1 year ago

I didn't realise that Deno still 1 doesn't have OffscreenCanvas, so I was setting up a system that would rely on it, and of course eventually came across a need for createImageBitmap and Image.

Here's the issue for OffscreenCanvas, which blocks this one:

Please feel free to close this if the above issue is a relevant-enough catch-all for this.

[1] Probably waiting for this: https://bugs.chromium.org/p/skia/issues/detail?id=12512

backspaces commented 8 months ago

Try: https://deno.land/x/skia_canvas/mod.ts I've used it to run browser scripts that need Image & Canvas.

nhrones commented 8 months ago

The skia_canvas linked above, works very well. I've written desktop GUI apps with it. The context2D is completely DOM canvas compatible, including path2D and imageData.

josephrocca commented 3 months ago

Looks like Deno has createImageBitmap now:

But it's currently not working. I can confirm replication of this bug: