简体   繁体   English

真的没有办法从照片库中检索照片的原始文件名吗?

[英]Is there really no way to retrieve the original filename of a photo from the photo library ?

I found some interesting topics, such as : - How to get a photo's original filename in iOS? 我发现了一些有趣的主题,例如:- 如何在iOS中获取照片的原始文件名? or : - Retrieving a filename for an ALAsset 或:- 检索ALAsset的文件名

but it says that you can read the local filename of the picture, but not the original name from the source image. 但是它说您可以读取图片的本地文件名,但不能读取源图像中的原始名称。 Indeed, on ios, the pictures are renamed to : 实际上,在ios上,图片已重命名为:

/var/mobile/Media/DCIM/XXXAPPLE/IMG_XXXX.JPG ou .PNG /var/mobile/Media/DCIM/XXXAPPLE/IMG_XXXX.JPG ou .PNG

but when I sync my phone, itunes knows which pictures are already synced, so there must be a link between the original filename and the new ? 但是当我同步手机时,itunes知道哪些图片已经同步,因此原始文件名和新文件名之间必须存在链接吗?

纯粹是推测:iTunes可能既知道原始文件名,也知道iOS设备上使用的“同步”文件名,而iOS仅知道本地名称,这将使得无法在iOS设备上检索原始文件名。

iOS tries to be different than many OSes in that it does not push the abstraction of content into filesystem (files, filenames, folders and so on). iOS尝试与许多操作系统不同,因为它不会将内容的抽象推送到文件系统(文件,文件名,文件夹等)中。 In some situations it might be better to continue on this path. 在某些情况下,最好沿着这条道路继续前进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM