【问题标题】:How to get metadata from a picture?如何从图片中获取元数据?
【发布时间】:2010-05-11 12:37:01
【问题描述】:

我正在浏览网页,但无法找到如何从图片中获取元数据。

有人有想法吗?

我在 Bitmap/BitmapFactory/BitmapFactory.Options 文档中看不到任何可以给我提示的内容。

我想检索标准信息,例如:

  • 姓名
  • 拍摄日期
  • 维度
  • 尺寸

也许更多。

有什么想法吗?

【问题讨论】:

    标签: android bitmap metadata


    【解决方案1】:

    您可以通过将 BitmapFactory.Options.inJustDecodeBounds 设置为 true 来获得至少图像的大小。

    如果图片在 MediaStore 中,您或许可以获得更多信息。

    【讨论】:

      【解决方案2】:

      根据这个帖子

      http://osdir.com/ml/AndroidDevelopers/2009-02/msg00821.html

      你必须使用 ImageManager

      【讨论】:

      • 该链接显示一个白页并有一行文字:Error, Will Robinson!。线程似乎消失了。
      猜你喜欢
      • 1970-01-01
      • 2011-06-06
      • 1970-01-01
      • 1970-01-01
      • 2019-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-22
      相关资源
      最近更新 更多