skia_canvas
skia_canvas copied to clipboard
Fast HTML Canvas API implementation for Deno using Google Skia
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!
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  What should I do?
  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 =...
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...
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...
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.