0.1.0 • Published 6 years ago
core-canvas-image-helper v0.1.0
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