I have my Ionic app taking pictures with the ngCordova camera plugin, but I want the pictures to be square. I also need an overlay if possible that shows which area is going to be cropped. Here is the code I'm using:
$scope.getPhoto = function() {
Camera.getPicture().then(function(imageURI) {
console.log(imageURI);
$scope.lastPhoto = imageURI;
}, function(err) {
console.err(err);
}, {
quality: 75,
targetWidth: 320,
targetHeight: 320,
saveToPhotoAlbum: false
});
};
Thanks for the help