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