canvas2image

1.0.5 • Public • Published

Canvas to Image npm Module

A reimplementation of the Canvas2Image client side javascript library for npm.

https://github.com/hongru/canvas2image

Code

Canvas2Image.saveAsImage(canvasObj, width, height, type)
Canvas2Image.saveAsPNG(canvasObj, width, height)
Canvas2Image.saveAsJPEG(canvasObj, width, height)
Canvas2Image.saveAsGIF(canvasObj, width, height)
Canvas2Image.saveAsBMP(canvasObj, width, height)

Canvas2Image.convertToImage(canvasObj, width, height, type)
Canvas2Image.convertToPNG(canvasObj, width, height)
Canvas2Image.convertToJPEG(canvasObj, width, height)
Canvas2Image.convertToGIF(canvasObj, width, height)
Canvas2Image.convertToBMP(canvasObj, width, height)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i canvas2image

Weekly Downloads

958

Version

1.0.5

License

MIT

Last publish

Collaborators

  • randreucetti