需要获得捕捉图像当前的方向 [英] Need to get capturing image current orientation
问题描述
喜在我的Android应用程序的PhoneGap,当我捕捉人像模式,则检索图像时,图像旋转图像。
Hi In my android phonegap app,when i capture the image in portrait mode then image is rotated when retrieving the image.
下面是我的code捕捉图像:
Here is my code to capture the image:
navigator.device.capture.captureImage(captureSuccess, captureError, {limit: 1});
如果我设置correctOrientation为真没什么区别。
If i set correctOrientation as true nothing difference.
如果我用下面的code,那么图像存储在正确的方向,但任何解决方案保存在cache.Is那里DCIM \\摄像头的保存路径?
If i use the below code then image is stored in correct orientation but saved in cache.Is there any solution to save in DCIM\Camera path?
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
destinationType: navigator.camera.DestinationType.FILE_URI,
correctOrientation: true });
请帮忙me.Thanks提前
Please help me.Thanks in Advance
推荐答案
要拍摄照片,您需要使用Getpicture中方法和DCIM \\相机路径上存储的照片,你需要把真正的saveToPhotoAlbum参数。
To capture photo you need to use getPicture method and to stored photo on DCIM\Camera path you need to turn true saveToPhotoAlbum parameter.
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
destinationType: navigator.camera.DestinationType.FILE_URI,
saveToPhotoAlbum: true,
correctOrientation: true });
这篇关于需要获得捕捉图像当前的方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!