A pure JavaScript library to handle image via canvas.
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
});
-
compress
-
crop
-
rotate
-
reszie