【问题标题】:Read EXIF/IPTC information from image in Cocoa从 Cocoa 中的图像中读取 EXIF/IPTC 信息
【发布时间】:2012-02-04 22:48:08
【问题描述】:

我找不到任何关于如何从 Cocoa 中的图像中读取 EXIF/IPTC 信息的最新示例。有什么可以轻松完成的,或者我应该使用外部工具作为 exiftool 并使用 NSTask 启动它?

谢谢!

【问题讨论】:

    标签: xcode macos cocoa exif iptc


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      您可以使用 Image IO 库中的 Image Source functions。有点像...

      CGImageSourceCreateWithData(someCFDataRef, nil);
      CFDictionaryRef dictRef = CGImageSourceCopyPropertiesAtIndex(imgSource, 0, nil);
      

      应该用 EXIF 数据填充dictRef

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-11-16
        • 2014-06-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多