On setting correctOrientation:true,然後解決圖像旋轉問題並設置縮略圖 - 但圖像路徑爲:file:// storage/emulated/0/Android /數據/ com.examole.helloworld/modified.jpg 149028394994Phonegap - android-image如果方向設置爲true,則保存在緩存中
沒有correctOrientation:真實,圖像路徑是:文件:///storage/emulated/0/DCIM/Camera/1490345556009.jpg
嘗試當使用correctOrientation:true設置另一個圖像,則未設置最新選擇的圖像。 以下爲你的善良參考代碼:
navigator.camera.getPicture(captureSuccess, onFail, {quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM,
mediaType: Camera.MediaType.PICTURE,
correctOrientation: true,
allowEdit: true
});
在此先感謝。
對於那些後來發現這個問題,現在已經在最新版本的cordova-plugin-camera中解決了這個問題。升級插件來解決這個問題。 – KyleT 2016-01-22 00:45:15