Objective c - 如何检查照片元数据是否已更改

发布于 2025-01-12 06:26:23 字数 190 浏览 2 评论 0原文

我正在使用 Objective-C 开发内部 iOS 应用程序来捕获图像,并且我依赖照片元数据来获取正确的位置和日期,但新的 iOS 版本允许用户调整和更改整个照片信息,并且我们的现场工作人员能够使用虚假细节更改照片元数据。

保护信息的唯一方法: 1- 如何检查照片元数据是否发生变化,并拒绝修改后的照片? 2- 是否可以创建配置文件以使所有照片只读?

I am developing in-House iOS app with objective-c for capturing images and I'm depending on photos metadata to get the correct locations and dates, but the new iOS versions allow the user to adjusting and changing the whole photo information, and our field staff able to changing the photo metadata with fake details.

The only ways that can protect the informations:
1- How to check the photo if metadata has changed or not, and refuse the modified photo.?
2- It possible to create configuration file to make all photos with read-only?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

永不分离 2025-01-19 06:26:23

可通过“照片”应用程序访问的照片库属于用户,而不属于您。因此,如果您不希望用户对这些照片拥有正常权限,请不要将它们存储在用户的照片库中。

The photo library, accessible through the Photos app, belongs to the user — not to you. So if you don't want the user to have normal powers over these photos, then don't store them in the user's photo library.

清风无影 2025-01-19 06:26:23

对于 iOS 上的其他对象(我特别想到的是联系人),您可以将自己的元数据存储在 Apple 的数据库中。我不认为照片是这样的,抱歉。

您也许可以要求用户在您的应用程序中拍摄照片并将该位置存储在您自己的数据库中。如果您愿意,您可以将照片存储在照片数据库中。

With other objects on iOS (I'm thinking of contacts in particular) you can store metadata of your own in Apple's database. I don't think that's the case with photos, sorry.

You could perhaps require your users take the photo in your app and store the location in a database of your own. You might be able to store the photo in the photos database if that's something you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文