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:
Or read this on Hacker News