iOS - 将 kCGImagePropertyExifUserComment 添加到图像的问题
我在将 kCGImagePropertyExifUserComment 写入我的图像时遇到问题。我的代码(总体而言)有效,因为它可以轻松写入 GPS 坐标。但是,在 UserComment 字段中写入一些附加信息是不起作用的(我不确定为什么)。代码是:
CFDictionarySetValue(mutable, kCGImagePropertyExifUserComment, [NSString stringWithFormat:@"%0.0f,%0.0f,%0.0f",yaw,pitch,roll]);
有人对此有想法吗?
I'm having problems writing a kCGImagePropertyExifUserComment to my image. My code (overall) works, as it writes GPS coordinates without a hassle. However, writing some additional info in the UserComment field is non-working (and I'm not sure why). Code is:
CFDictionarySetValue(mutable, kCGImagePropertyExifUserComment, [NSString stringWithFormat:@"%0.0f,%0.0f,%0.0f",yaw,pitch,roll]);
Anyone have an idea on this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果其他人想知道如何做到这一点,我终于弄清楚了:
奇怪,但它工作得很好!
If anyone else is wondering how to do this, I've finally figured it out:
Strange, but it works just fine!