nativescript-imagecropper icon indicating copy to clipboard operation
nativescript-imagecropper copied to clipboard

Cropped Image passing to other API - issues

Open jyotigupta-leidos opened this issue 5 years ago • 0 comments

I need to use the cropped image for another functionality like- need to pass to Google API for OCR purpose and I am using this code -

this.croppedImage = frameModule.topmost().getViewById("croppedImage"); this.croppedImage.imageSourceModule = args.image;

And I pass this.croppedImage.imageSourceModule to Google API.

and use this.croppedImage for the further purpose but I always see this.croppedImage as undefined. I have the id in HTML too like the below -

<Image *ngIf="myImage" horizontalAlignment="center" src="{{croppedImage}}" width="700" height="600" id="croppedImage"></Image>

Please let me know what wrong I am doing?

jyotigupta-leidos avatar Oct 13 '20 16:10 jyotigupta-leidos