cordova-plugin-crop icon indicating copy to clipboard operation
cordova-plugin-crop copied to clipboard

Show cropped image

Open TeodorKolev opened this issue 6 years ago • 3 comments

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.

TeodorKolev avatar Feb 22 '18 11:02 TeodorKolev

I have de same problem.

eduardogiorgio avatar Feb 24 '18 23:02 eduardogiorgio

@TeodorKolev did you fix it somehow?

lfreneda avatar Feb 05 '19 15:02 lfreneda

2020 and I have the same problem. Could you solve it?

mateoc10 avatar Sep 04 '20 19:09 mateoc10