koorgoo / ngCropper

AngularJS wrapper for https://github.com/fengyuanchen/cropper
107 stars 72 forks source link

Get main image not from input field #32

Open romangusiev opened 8 years ago

romangusiev commented 8 years ago

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....

pidupuis commented 8 years ago

I need it too

caoruonan commented 7 years ago

I need it too,help