core-canvas-image-helper

0.1.0 • Public • Published

core-canvas-image-helper

A pure JavaScript library to handle image via canvas.

How to use

npm install core-canvas-image-helper -save
// es6
import canvasHelper from 'core-canvas-image-helper';
// src specify an image src (url or base64)
canvasHelper.rotate(src, degress, (data, w, h) => {
  // your code here
});

API

  • compress

  • crop

  • rotate

  • reszie

Package Sidebar

Install

npm i core-canvas-image-helper

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • jack_pu