1
我正在使用離子模塊cordovaCapture
。cordovaCapture captureImage not reading options
但它不讀我通過一個可變的選項:
var options = {
limit: 1,
quality: 100,
targetWidth: 1280,
targetHeight: 1280,
correctOrientation: true,
saveToPhotoAlbum: false
};
$cordovaCapture.captureImage(options).then(function (imageData) {
var imgData = imageData[0].fullPath;
// here I upload them to remote Server
}, function (error) {
alert('error');
});
拍攝的圖像不糾正他的方向,可是沒有寬度或高度最大1280px和它一直保存到photoAlbum ..什麼是設置選項的正確方法?