Data relationship between original picture and preview thumbnails

Open SQLite database <path-to-your-photos-library-"file">/database/photos.db

My path-to-your-photos-library-"file" is 
/Volume/Mac Photos/MacPhotos.libraries/Photos.photoslibrary

hence my path of database is
/Volume/Mac Photos/MacPhotos.libraries/Photos.photoslibrary/database/photos.db
  1. Get modelId from RKMaster
select modelId from RKMaster where imagePath='2017/10/14/20171014-120320/1507889041932.mp4'

imagePath here means the path under folder <path-to-your-photos-library-"file">/Masters/
where your pictures/videos were imported by Photos app. The date of the folder is the importing date and time, but not the date time when the picture was taken.

we got 34591 for this record.

  1. Get modelId from RKVersion via column masterId
select modelId from RKVersion where masterId = 34591

We can also link up these 2 tables via columns RKMaster.uuid and RKVersion.masterUuid

we got 36841 for this record.

  1. Transform decimal (36841) to hexadecimal (8fe9)

  2. Get preview thumbnails from Finder
    /Volume/Mac Photos/MacPhotos.libraries/Photos.photoslibrary/resources/proxies/derivatives/8f/00/8fe9
    i.e.
    <path-to-your-photos-library-"file">/resources/proxies/derivatives/<first-2-positions>/00/<hexadecimal>

you can see files as follows:
UNADJUSTEDNONRAW_largepv_8fe9.jpg
UNADJUSTEDNONRAW_mini_8fe9.jpg
UNADJUSTEDNONRAW_thumb_8fe9.jpg

For pictures, there're only 2 files, i.e. mini and thumb.
For videos, there're 3 files, i.e. largepv, mini and thumb.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容