如何查看Android的全景照片? [英] how can check panorama photo android?
问题描述
我需要在Gallery Android中显示所有全景照片.但是扩展名是jpg相同的普通照片.
I need to show all panorama photo in Gallery android. But it extension is jpg same regular photo.
如何查看Gallery android中的照片是全景照片?
How can I check a photo in Gallery android is Panorama photo?
谢谢
推荐答案
您需要提取 XMP元数据
XMP元数据本质上是图像元数据...
XMP Metadata is essentically image metadata...
...以某些XML友好格式编码,例如 Base64 .>
请参阅此以前的问题/答案在StackOverflow上查看如何解码 Base64.
See this previous question/answers on StackOverflow to see how to decode Base64.
基于可以从jpeg解码的xml,您也许可以猜出所需的intent-filter.例如,对于Photo Sphere全景照片格式,该格式为格式.
Based on the xml you can decode from the jpeg, you may be able to guess the intent-filter you'll need. In the case of a photo sphere panorama format for instance, this is the format.
如果您想在自己的Android应用中接受Photo Sphere图像, 您可以添加自定义
MIME
类型application/vnd.google.panorama360+jpg
到相关的IntentFilter
您的应用.
If you want to accept Photo Sphere images in your own Android apps, you can add the custom
MIME
typeapplication/vnd.google.panorama360+jpg
to the relevantIntentFilter
in your app.
但是,我不确定您的jpeg位于哪种类型的全景图.如果您在问题中张贴了特定的jpeg,这可能会有所帮助.
However, I'm not sure what type of panorama your jpeg is in. It may help if you posted the particular jpeg with your question.
这篇关于如何查看Android的全景照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!