cordova-plugin-image-resize

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i cordova-plugin-image-resize

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • zhangxiansheng