@dangnelson wrote:
I've got two pretty typical options, take picture and choose picture.
I'm trying to crop to a square image in iOS.
This works well when choosing a picture from the camera roll.
However, after taking a picture with the camera, I can not move the image up and down to crop. I can zoom in and out, but can not adjust up and down.
$scope.takePicture = function() { console.log("Getting camera..."); Camera.getPicture({ allowEdit : true, targetWidth: 300, targetHeight: 300 }).then(function(imageURI) { $scope.imageURI = imageURI; console.log(imageURI); }, function(err) { console.log(err); }); }; $scope.choosePicture = function() { console.log("Getting camera..."); Camera.getPicture({ allowEdit : true, targetWidth: 300, targetHeight: 300, sourceType : 0 }).then(function(imageURI) { $scope.imageURI = imageURI; console.log(imageURI); }, function(err) { console.log(err); }); };
Posts: 1
Participants: 1