Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 727 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 727 Bytes

cordova-imageResize

A cordova plugin that provides the functionality to resize image on both android and ios.

Installing the plugin

cordova plugin add https://github.com/autobotsrocks/cordova-imageResize

Usage

window.autobots.imageResize.resize(
  {
    source: '/storage/emulated/0/Pictures/hello.png',
    quality: 65, // Default 70
    type: 'maxPixelResize' | 'minPixelResize', //Default maxPixelResize
    width: 80,
    height: 80
  },
  function(response) {
    alert(response.filePath);
    alert(response.width);
    alert(response.height);
  },
  function(error) {
    alert(error);
  }
);

Dependencies

Android: glide

License

MIT