【发布时间】:2015-05-16 04:44:05
【问题描述】:
我的 Ionic 应用程序使用 ngCordova 相机插件拍照,但我希望照片是方形的。如果可能的话,我还需要一个叠加层来显示要裁剪的区域。这是我正在使用的代码:
$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
});
};
感谢您的帮助
【问题讨论】:
-
我也有同样的问题!
标签: ios ionic-framework ionic ngcordova