I'm using ionic 3, I want to select an image from my gallery and crop picture, I've successfully created this, but the problem is when I choose google photos instead of a gallery, the crop editor didn't show up. Therefore I just want to use Gallery option and excluding the google photos option.
options.sourceType = this.camera.PictureSourceType.PHOTOLIBRARY
this.camera.getPicture(options).then((imageData) => {
this.base64Image = imageData.replace('file://','');
// for cropping image
let modal = this.modal.create('CanvaseditPage',{data:"data:image/jpeg;base64," + imageData});
modal.present();
}, (err) => {
console.log(err);
});
from Ionic exclude google photos from camera.PictureSourceType.PHOTOLIBRARY

No comments:
Post a Comment