Ionic 3 Image Picker & Image Resize Used Plugins : Image Picker Plugins: ionic cordova plugin add cordova-plugin-telerik-imagepicker npm install --save @ionic-native/image-picker Image Resizer plugin : ionic cordova plugin add add info.protonet.imageresizer npm install --save @ionic-native/image-resizer Create Your Project as: ionic start ProjectName blank cd ProjectName Create Pages In your Project as : ionic g page image-picker Include new Page in app.module.ts as : import { ImagePickerPage } from '../pages/image-picker/image-picker'; declarations:[ ..... ImagePickerPage, ], entryComponents:[ ...... ImagePickerPage, ] Use the below code in any of page example : image-picker.html <ion-header> <ion-navbar color="primary"> <ion-title>Image Picker</ion-title> </ion-navbar> </ion-header> <ion-content [ngStyle]="{ 'background': 'url(' + pickedImage + ') center/c...
Comments
Post a Comment