是否PNG包含类似JPG EXIF​​数据? [英] Does PNG contain EXIF data like JPG?

查看:3170
本文介绍了是否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
    • YResolution(有理):72/1
    • ResolutionUnit压缩(SHORT):2
    • 软件(ASCIIx16)为:QuickTime 7.6.6
    • 在日期时间(ASCIIx20):2011:10:02 22点43分37秒
    • HostComputer(ASCIIx16)的Mac OS X 10.6.8
    • 的Exif IFD(LONG):8 34853
    • GPS IFD(LONG):248
    • IDF0--- IDF @[134 - 248] (9 entries)
      • Orientation (SHORT) : 1
      • XResolution (RATIONAL) : 72/1
      • YResolution (RATIONAL) : 72/1
      • ResolutionUnit (SHORT) : 2
      • Software (ASCIIx16) : QuickTime 7.6.6
      • DateTime (ASCIIx20) : 2011:10:02 22:43:37
      • HostComputer (ASCIIx16) : Mac OS X 10.6.8
      • Exif IFD (LONG) : 8 34853
      • GPS IFD (LONG) : 248

       

      • 在EXIF IDF --- IDF @ [8 - 134](10项)
        • ExifVersion(UNDEFINEDx4):0220
        • DateTimeOrigina(ASCIIx20):2011:04:14 17时22分○一秒
        • UserComment在(UNDEFINEDx63):ASCII
        • FlashpixVersion(UNDEFINEDx4):0100
        • 的ColorSpace(SHORT):1
        • PixelXDimension(LONG):1022
        • PixelYDimension(LONG):486
        • 未知(ASCIIx13):图像标签-LOL
        • SceneCaptureType(SHORT):0
        • EXIF IDF--- IDF @[8 - 134](10 entries)
          • ExifVersion (UNDEFINEDx4) : 0220
          • DateTimeOrigina (ASCIIx20) : 2011:04:14 17:22:01
          • UserComment (UNDEFINEDx63) : ASCII
          • FlashpixVersion (UNDEFINEDx4) : 0100
          • ColorSpace (SHORT) : 1
          • PixelXDimension (LONG) : 1022
          • PixelYDimension (LONG) : 486
          • Unknown (ASCIIx13) : Image Tag-LOL
          • SceneCaptureType (SHORT) : 0

           

          • GPS IDF --- IDF @ [248 - 338](7项)
            • 在互用性指数(ASCIIx2):N
            • 在互操作性版(RATIONALx3)@ 425:52/1,100分之1144,0/1
            • 未知(ASCIIx2):W
            • 未知(RATIONALx3):1/1,百分之四千三百九十二,0/1
            • 未知(有理):5/1
            • 未知(ASCIIx2):T已
            • 未知(有理):一百十七分之三千六百九十四
            • GPS IDF--- IDF @[248 - 338](7 entries)
              • Interoperability Index (ASCIIx2) : N
              • Interoperability Version (RATIONALx3) @425: 52/1, 1144/100, 0/1
              • Unknown (ASCIIx2) : W
              • Unknown (RATIONALx3) : 1/1, 4392/100, 0/1
              • Unknown (RATIONAL) : 5/1
              • Unknown (ASCIIx2) : T
              • Unknown (RATIONAL) : 3694/117

               

              推荐答案

              PNG没有嵌入EXIF信息。它允许的范围,但是,为了嵌入的元数据的在图像内。一些对应一些EXIF属性(物理尺寸,时间戳)的标准化块,而且它也可以存储任意文本数据为键=值对或定义新的块类型。所以,你可以在原则上存储的任何EXIF信息......但在你自己的自定义格式。一些尝试来standarize没有跟上,它似乎。

              PNG does not embed EXIF info. It allows, however, to embed metadata "chunks" inside the image. Some of the standardized chunks correspond to some 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 principle store any EXIF information... but in your own custom format. Some attempts to standarize have not caught up, it seems.

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

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