options={file: file// HTMLImageElement or FilemaxWidth: 640maxHeight: 640callback: function(result){},readAsDataURL: false,// by default return a blobkeepExif: true// by default keep Exif for image/jpeg}resize(options);click to view demo.
$ npm install .
$ npm run build // build for production
$ npm run watch // watch to develop
$ npm test // testin browser