cordova-plugin-crop
cordova-plugin-crop copied to clipboard
Show cropped image
How to get actual image file and show it in view? Also I am trying to get cropped and send it to server. How can I do that? Code I tried:
return this.camera.getPicture(this.options)
.then((fileUri) => {
if (this.platform.is('android')) {
return this.crop.crop(fileUri).then((path) => {
this.imgUrl = path;
});
}
});
<img [src]="imgUrl" />
which not showing any image
Code returns me path, in format: file:///storage/..... but image is not shown.
I have de same problem.
@TeodorKolev did you fix it somehow?
2020 and I have the same problem. Could you solve it?