Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Cordova Camera Plugin allowEdit cropping not working after taking picture

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>