canvas2image

A npm module version of the canvas2image script developed by https://github.com/hongru

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
canvas2image
1651.0.57 years ago7 years agoMinified + gzip package size for canvas2image in KB

Readme

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