“来自哪里"在哪里?在macOS映像中存储? [英] Where is "Where from" in a macOS image stored?

查看:67
本文介绍了“来自哪里"在哪里?在macOS映像中存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Safari和macOS从网络下载的图像具有可通过Finder获取信息的信息.例如,从哪里"可以是原始图像的URL.是与图像一起存储的还是?

Images downloaded from the web using Safari and macOS have information available from the Finder with Get Info. For example, "Where from" which can be the URL for the original image. Is that stored with the image or ?

exiftool image.jpg 不显示信息.

答案来自@Gordon Davisson的两条评论.其他回应也有帮助.对我而言, mdls 是有用的,而 xattr 提供了其他相关信息.尽管我仍然不太了解信息的存储位置,但可以肯定地说它没有嵌入文件本身,但是macOS和Windows可以跟踪信息.

The answer is in the two comments from @Gordon Davisson. Other responses were helpful also. For my purposes mdls is useful and xattr provides additional relevant information. Although I still don't quite understand where the info is stored I think it's safe to say it's not embedded in the file itself, but macOS and Windows can track the info.

推荐答案

要访问文件 Finder 元数据的值,请使用 Terminal中的 mdls 命令.这将列出与文件关联的 all 元数据属性:

To access the values for a file's Finder metadata, use the mdls command in Terminal. This will list all the metadata attributes associated with the file:

mdls /path/to/file

这将检索特定属性:

mdls -name 'kMDItemWhereFroms' /path/to/file

mdls -name 'kMDItemWhereFroms' /path/to/file -raw

mdls -name 'kMDItemWhereFroms' /path/to/file -plist -

您可以在手册页

这篇关于“来自哪里"在哪里?在macOS映像中存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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