Skip to main content

Image Resizer

Cordova Plugin For Image Resize

https://github.com/JoschkaSchulz/cordova-plugin-image-resizer

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install info.protonet.imageresizer $ npm install @ionic-native/image-resizer $ ionic cap sync

Supported Platforms#

  • Android
  • iOS
  • Windows

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { ImageResizer, ImageResizerOptions } from '@ionic-native/image-resizer/ngx';
constructor(private imageResizer: ImageResizer) { }
...
let options = { uri: uri, folderName: 'Protonet', quality: 90, width: 1280, height: 1280} as ImageResizerOptions;
this.imageResizer  .resize(options)  .then((filePath: string) => console.log('FilePath', filePath))  .catch(e => console.log(e));