Python app to work with pictures and associated metadata from Apple Photos on macOS. Also includes a package to provide programmatic access to the Photos library, pictures, and metadata.
If image is edited, PhotoInfo.path_derivatives may return the wrong preview image which will result in --preview exporting the wrong image. path_derivatives sorts previews by size and --preview uses the largest preview available. However, in case of edited image, the edited preview may not be the largest.
In this example, the edited preview is the second one in the list:
If image is edited, PhotoInfo.path_derivatives may return the wrong preview image which will result in --preview exporting the wrong image. path_derivatives sorts previews by size and --preview uses the largest preview available. However, in case of edited image, the edited preview may not be the largest.
In this example, the edited preview is the second one in the list:
The same list of images exists for an unedited preview: