cordova - CordovaCamera always a Square photo? -
what have change cordovacamera doesn't make square photos anymore?
now when call 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 camera, take photo, screen see square. when "use photo" saves picture part inside square..
if use allowedit: true,
, after taking picture goes crop screen, , crop screen crops square.
if don't want square use allowedit: false,
, you'll use original image original size.
Comments
Post a Comment