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
Get Avast Free Antivirus | Your top-rated shield against malware and online scams Icon
Get Avast Free Antivirus | Your top-rated shield against malware and online scams

Boost your PC's defense against cyberthreats and web-based scams.

Our antivirus software scans for security and performance issues and helps you to fix them instantly. It also protects you in real time by analyzing unknown files before they reach your desktop PC or laptop — all for free.
Free Download
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