“来自哪里"在哪里?在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 -
您可以在手册页