PNG 是否包含像 JPG 那样的 EXIF 数据? [英] Does PNG contain EXIF data like JPG?

查看:86
本文介绍了PNG 是否包含像 JPG 那样的 EXIF 数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 PNG 是否包含如下数据?

I was wondering if PNG contains data like the following?

我所做的是将 jpg 文件转换为 png 格式,我希望检索到与 jpg 相同的信息,如下所示:

What I did was to convert the jpg file to png format, and I was expecting to retrieve the same info I had on the jpg as below:

目前正在使用这个 as3 库来读取数据.

Currently using this as3 library to read the data.

  • IDF0--- IDF @[134 - 248](9 个条目)
    • 方向(简短):1
    • XResolution(理性):72/1
    • Y分辨率(理性):72/1
    • 分辨率单位(简短):2
    • 软件 (ASCIIx16):QuickTime 7.6.6
    • 日期时间 (ASCIIx20):2011:10:02 22:43:37
    • HostComputer (ASCIIx16):Mac OS X 10.6.8
    • Exif IFD(长):8 34853
    • GPS IFD(长):248

     

    • EXIF IDF--- IDF @[8 - 134](10 个条目)
      • ExifVersion (UNDEFINEDx4) : 0220
      • DateTimeOrigina (ASCIIx20):2011:04:14 17:22:01
      • 用户评论(未定义x63):ASCII
      • FlashpixVersion (UNDEFINEDx4) : 0100
      • 色彩空间(简短):1
      • PixelXDimension(长):1022
      • PixelYDimension(长):486
      • 未知 (ASCIIx13):图片标签-LOL
      • SceneCaptureType(简短):0

       

      • GPS IDF--- IDF @[248 - 338](7 个条目)
        • 互操作性指数 (ASCIIx2):N
        • 互操作性版本 (RATIONALx3) @425:52/1、1144/100、0/1
        • 未知(ASCIIx2):W
        • 未知 (RATIONALx3):1/1、4392/100、0/1
        • 未知(理性):5/1
        • 未知(ASCIIx2):T
        • 未知(理性):3694/117

         

        推荐答案

        PNG 1.2 规范的扩展 终于添加了一个EXIF 块.编码器-解码器是否开始支持它还有待观察.

        Version 1.5.0 (July 2017) of the Extensions to the PNG 1.2 Specification has finally added an EXIF chunk. It remains to be seen if encoders-decoders begin to support it.

        原文:PNG 不嵌入 EXIF 信息.但是,它允许在图像中嵌入元数据chunks".一些 标准化块 对应于一些 EXIF 属性(物理尺寸、时间戳).还可以将任意文本数据存储为 key=>value 对,或者定义新的块类型.因此,理论上您可以存储任何 EXIF 信息……但是,唉,以您自己的自定义格式.一些尝试标准化似乎没有赶上.

        Original: PNG does not embed EXIF info. It allows, however, to embed metadata "chunks" inside the image. Some of the standardized chunks correspond to a few EXIF attributes (physical dimensions, timestamp). And it's also possible to store arbitrary textual data as key=>value pairs, or to define new chunk types. So, you could in theory store any EXIF information... but, alas, in your own custom format. Some attempts to standarize have not caught up, it seems.

        这篇关于PNG 是否包含像 JPG 那样的 EXIF 数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆