# 2cs-canvas2image

> Canvas2image

Latest version **0.0.2** (published 2017-05-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install 2cs-canvas2image
pnpm add 2cs-canvas2image
yarn add 2cs-canvas2image
bun add 2cs-canvas2image
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-05-12 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hai Bui |
| Maintainers | haibui |
| Keywords | canvas2image |

## Links

- npm: https://www.npmjs.com/package/2cs-canvas2image
- Repository: https://github.com/buixuanhai/canvas2image
- Homepage: https://github.com/buixuanhai/canvas2image#readme
- Issues: https://github.com/buixuanhai/canvas2image/issues
- npm.io page: https://npm.io/package/2cs-canvas2image

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-05-12
- 0.0.1 — 2017-05-12

## README

# Canvas2image #
a tool of saving or converting canvas to images

## Demo ##
[canvas2image](http://hongru.github.com/proj/canvas2image/index.html)

## Code ##
you can just use it like this

    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

---
_Source: https://npm.io/package/2cs-canvas2image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
