Image Resizer
Cordova Plugin For Image Resize
联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.
Ionic 图片剪切Image Resizer插件的安装(Installation)
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
Ionic 图片剪切Image Resizer插件支持的平台(Supported Platforms)
- Android
- iOS
- Windows
Ionic 图片剪切Image Resizer插件的用法(Usage)
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));