Hi, I’ve been using the camera and the Image picker plugin and displaying the images in FILE_URI format for a couple of months now, but since our last update (31 July) the images don’t display on iOS. I tried everything I could think of like display in Base64, using the Dom sanitizer, using ion-img instead of img…
Does anyone have a solution for this problem ?
Here is a snippet of my code:
<ion-slides #imgSlider class="imgSlider" slidesPerView="auto">
<ion-slide *ngFor="let image of images, let i = index">
<div class="cameraImg" [style.height.px]="cameraImageHeight">
<img class="spotImg" [src]="image.url" />
</div>
</ion-slide>
</ion-slides>
this.camera.getPicture({
destinationType: this.camera.DestinationType.FILE_URI,
correctOrientation: true,
encodingType: this.camera.EncodingType.JPEG,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
allowEdit: true
}).then((imageData: any) => {
console.log(imageData);
var d = new Date();
var n = d.getTime();
this.images.push({
id: n,
url: imageData,
newImage: true,
thumbnail: (this.images.length == 0)? true : false
});
}, (err) => {
console.log(err);
});