ngCropper icon indicating copy to clipboard operation
ngCropper copied to clipboard

Get main image not from input field

Open romangusiev opened this issue 9 years ago • 2 comments

Hey, iI'm trying to crop image but not picking it up from input field, but getting it from base64 string. So I'm doing like this - $scope.dataUrl = newDataURL; - and it starts showing up the image. But when I try to get cropped image - it does not work, because calling Cropper.crop($scope.cropperFile, $scope.cropperData).then(Cropper.encode) means that I have to have file picked in input. But it comes from my base64 string, not from input. How can I set image from string and get cropped image then....

romangusiev avatar May 11 '16 19:05 romangusiev

I need it too

pidupuis avatar Jul 26 '16 14:07 pidupuis

I need it too,help

caoruonan avatar Aug 30 '17 08:08 caoruonan