【发布时间】:2016-05-17 15:19:03
【问题描述】:
我在使用各种设备拍摄图像时遇到了无穷无尽的问题,对于某些设备,这里提到的 ExifInterface 和使用 contentresolver 都不能解决我的问题:
Why does an image captured using camera intent gets rotated on some devices on Android?
关于某些设备中的 ExifInterface,它总是返回 ExifInterface.undefined (zero) 。 至于内容解析器,当我查询方向时,我也得到零,这有时也不正确。
特别是我在这里使用了 user2832184 答案:
How can i find the orientation of a picture taken with Intent MediaStore.ACTION_IMAGE_CAPTURE?
还有其他解决方案建议吗?
我需要本机相机应用程序的全部功能,因此我无法切换到相机 api 并从头开始构建所有内容。
我也不介意使用第三方解决方案来解决这个问题。
【问题讨论】:
-
请详细说明准确您的问题是什么,准确您尝试了什么,以及准确为什么解决方案失败。
-
@CommonsWare 我已经编辑了我的问题
标签: android orientation exif android-camera-intent