Get the latest tech news

Skia Canvas: Browserless implementation of the HTML Canvas drawing API for node


Skia Canvas

It is based on Google’s Skia graphics engine and, accordingly, produces very similar results to Chrome’s<canvas> element. The library is well suited for use on desktop machines where you can render hardware-accelerated graphics to a window and on the server where it can output a variety of image formats. is fast and compact since rendering takes place on the GPU and all the heavy lifting is done by native code written in Rust and C++ can render to windows using an OS-native graphics pipeline and provides a browser-like UI event framework generates images in both raster (JPEG, PNG, & WEBP) and vector (PDF & SVG) formats can save images to files, return them as Buffers, or encode dataURL strings uses native threads in a user-configurable worker pool for asynchronous rendering and file I/O can create multiple ‘pages’ on a given canvas and then output them as a single, multi-page PDF or an image-sequence saved to multiple files can simplify, blunt, , excerpt, and atomize bézier paths using efficient boolean operations or point-by-point interpolation provides 3D perspective transformations in addition to scaling, rotation, and translation can fill shapes with vector-based Textures in addition to bitmap-based Patterns and supports line-drawing with custom markers supports the full set of CSS filter image processing operators offers rich typographic control including:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of browser

browser

Photo of node

node

Photo of implementation

implementation

Related news:

News photo

Neomacs: Structural Lisp IDE/browser/computing environment

News photo

Tech support chap showed boss how to use a browser for a year – he still didn't get it

News photo

Show HN: Screen Sharing in the Browser