If you don't have a supported OS or processor architecture, or you use --build-from-source, the module will be compiled on your system. This requires several dependencies, including Cairo and Pango. Note that libgif/giflib, librsvg and libjpeg are optional and only required if you need GIF, SVG and JPEG support, respectively. Cairo v1.10.0 or later is required. This project is an implementation of the Web Canvas API and implements that API as closely as possible. For API documentation, please visit Mozilla Web Canvas API. (See Compatibility Status for the current API compliance.) All utility methods and non-standard APIs are documented. When MIME data is tracked, PDF canvases can embed JPEGs directly into the output, rather than re-encoding into PNG. This can drastically reduce filesize and speed up rendering. If working with a non-PDF canvas, image data must be tracked, otherwise the output will be junk.

Features

  • node-canvas can create PDF documents instead of images
  • node-canvas can create SVG documents instead of images
  • If librsvg is available when node-canvas is installed, node-canvas can render SVG images to your canvas context
  • node-canvas has experimental support for additional pixel formats
  • By default, canvases are created in the RGBA32 format, which corresponds to the native HTML Canvas behavior
  • libgif/giflib, librsvg and libjpeg are optional and only required if you need GIF, SVG and JPEG support

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow node-canvas

node-canvas Web Site

Other Useful Business Software
AI-powered service management for IT and enterprise teams Icon
AI-powered service management for IT and enterprise teams

Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of node-canvas!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ User Interface (UI) Software

Registered

2021-07-20