skia_canvas icon indicating copy to clipboard operation
skia_canvas copied to clipboard

Fast HTML Canvas API implementation for Deno using Google Skia

Results 16 skia_canvas issues
Sort by recently updated
recently updated
newest added

Code: ```ts import { createCanvas, Image } from 'https://deno.land/x/[email protected]/mod.ts' const inputFilename = 'input.jpg' const outputFilename = 'output.png' const image = await Image.load(inputFilename) const canvas = createCanvas(image.width, image.height) const ctx =...

Is it possible with this library to convert SVGs to PNGs? Thank you!

enhancement
help wanted

On my elderly iMac (late 2014) running Big Sur macOS 11 (November 19, 2020), skia_canvas 0.5.2 does not import correctly, creating the error below. ``` deno --unstable repl -A Deno...

I tried to `fillText()` in Japanese, but I can't. ```js context.font = '50px serif' ``` But it shows ![Screenshot from 2023-04-05 21-25-32](https://user-images.githubusercontent.com/104671361/230079820-d9d9588d-9567-4e89-9a5e-d4fc0dda4b8e.png) What should I do?

![image](https://user-images.githubusercontent.com/14845492/229680522-2a7cb72d-a680-40e8-a9ab-1020df066c65.png) ![image](https://user-images.githubusercontent.com/14845492/229680568-444d5f30-9135-44b6-99c3-26ac55d803fa.png) I also tried other skia native libraries: Skija: reports the same exception Skia4delphi: reports the same exception skiaharp: It can be loaded, but it doesn't work for me...

[Code.zip](https://github.com/DjDeveloperr/skia_canvas/files/10509118/Code.zip) The we.js file and test.html file are identical, when its coming to the calls for creating the canvas ctx.clearRect(0, 0, 300, 300) Fonts.register(Deno.readFileSync("C://Windows/Fonts/micross.ttf"), "Microsoft Sans Serif") console.log(Fonts.families) ctx.font =...

help wanted

Just need to offload encoding to a separate thread and call with non blocking: true. It'll be useful for applications which handle concurrent requests and render images for them. Also...

enhancement
good first issue

It should be possible to compile this library to Wasm and use the C API through Wasm. The wrapping code could be reused, just the loading logic would change between...

enhancement
help wanted

It would be really nice to see some benchmarks in comparison with [deno-canvas](https://github.com/DjDeveloperr/deno-canvas). If you are accepting PRs, I would love to contribute.

We should run WPT tests for CanvasRenderingContext2D against this to test web compatibility and work on improving that.

enhancement