Paso a explicar, tengo un botón que llama una función – abrirGaleria() == Puedo abrir la galeria, selecciono las fotos que necesito. Luego pongo OK y me las carga en mi home.html, pero… las carga “rotas”
(home.ts)
imageResponse: any;
options: any;
abrirGaleria() {
this.options = { maximumImagesCount: 4 } ;
this.imageResponse = [];
this.imagePicker.getPictures(this.options).then((results) => {
for (var i = 0; i < results.length; i++) {
this.imageResponse.push('data:image/jpeg;base64,' + results[i]);
}
}, (err) => {
alert(err);
});
}
—(Home.html)–
<img src=“data:image/jpeg;base64,{{img}}” alt="" srcset="" *ngFor=“let img of imageResponse”>