Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

use canvas to resize image

1. API

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.

2. Development

$ npm install .
$ npm run build // build for production
$ npm run watch // watch to develop
$ npm test // testin browser

About

use canvas to resize image

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages