What do I have to change so CordovaCamera doesn't make Square photos anymore?
Now when I call this code:
var options = {
quality: 100,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.CAMERA,
allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
// targetWidth: 1600,
// targetHeight: 1280,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false,
correctOrientation:true
};
$cordovaCamera.getPicture(options).then(function (imageData) {
$scope.imgURI = "data:image/jpeg;base64," + imageData;
It opens the Camera, you take the photo, then you get a screen where you see a Square. When you say "use photo" it saves the picture part that was inside the square..
If you use allowEdit: true,
, after taking the picture it goes to the crop screen, and the crop screen always crops a square.
If you don't want a square then use allowEdit: false,
and you'll use the original image with the original size.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With