Skip to content

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

Notifications You must be signed in to change notification settings

autobotsrocks/cordova-imageResize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published