Description
PureImage is a pure JavaScript implementation of the HTML Canvas 2D drawing API for Node.js, with no native dependencies. Code written against the Canvas 2D API can draw shapes and text on an image in the same way. The README gives examples such as resizing images, drawing text, rendering badges and converting to grayscale. Images can be saved as PNG and JPEG. Since version 0.4 the project has been rewritten in TypeScript and compiled to both CommonJS and ES modules. The README notes one API change: font.load() now returns a promise, and font.loadSync() remains for synchronous use. The repository has sections for installation, a simple example that makes a red 100 by 100 image, a list of supported canvas features, and features still on the roadmap. Developers building image rendering on a server, or generating images in a Node.js pipeline without installing native image libraries, are the intended users.…
Highlights
- Canvas 2D API in pure JavaScript
- No native dependencies
- Save images as PNG and JPEG
- TypeScript rewrite with CommonJS and ES modules
- Text rendering and font loading
Ratings & Reviews
No ratings yet
Be the first to rate Node Pureimage.
People also visit
ImageSharp.Drawing
Extensions to ImageSharp containing a cross-platform 2D polygon manipulation API
Node Pureimage FAQ
What is PureImage?
A pure JavaScript implementation of the HTML Canvas 2D drawing API for Node.js.
Does it need native libraries?
No. The README says it has no native dependencies.
What can I save images as?
PNG and JPEG, according to the README.
Is there a breaking change?
The README says font.load() now returns a promise rather than using a callback, and that font.loadSync() is still available.
What are the best Node Pureimage alternatives?
Popular alternatives to Node Pureimage include Two.js, ImageSharp.Drawing and Pintura. See all Node Pureimage alternatives






