-
OSXPhotos is fantastic! Love it and it already does everything I need... but seeing how powerful it is, I now want more. I see that if I use the command line to export all info for a photo, I get all the good bits that Apple Photos has added as well, like information about faces and persons, machine analysed content etc. But how do I map that to some good Exif-structure so that I can export it with the photos? Is there a good standard to follow that at least some software will recognize and can utilise? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'm glad osxphotos is useful for you! With the exception of the SearchInfo data, all other metadata is written to the appropriate EXIF/IPTC/XMP metadata fields when you use Labels map easily to keywords and you can set this with It might be helpful to have season and some other search info in the keywords as well. You can also add this:
to include seasons and holidays. The names will be capitalized (first letter) so if you want all lower case you could do this:
For other search info fields like venue, etc. I don't know there's a great mapping. You could use Description which is written with For example:
You can use Keep in mind that some of this metadata changes as Apple updates the machine learning models which would result in all or much of your library being re-exported each time the metadata changes. Sonoma will add many more labels. The metadata fields currently written by osxphotos are: EXIF:ImageDescription (may include template) See also IPTC Specification and XMP Specification for what other fields are available. Note that osxphotos does not provide a way to access other fields when writing with |
Beta Was this translation helpful? Give feedback.
-
From my brief testing, OSXPhotos would often create duplicates when ran over the same time period multiple times, but might just be because it is not handled by default and I should have added some update boolean. --cleanup would be something dramatically different than what I'm doing. I'm just extracting the old, original filename from a longer filename, but still exports the file. |
Beta Was this translation helpful? Give feedback.
Glad to hear you're using the API. I originally wrote OSXPhotos as a tool for other developers to write their own code. However, the CLI has grown to be so flexible I find it's rarely needed and most users just want to the use the CLI. The
export
command for example, with--post-function
and--post-command
, allows you to customize the export while still taking advantage of all the export logic which is non-trivial. So I'm curious why you're writing your own export code? Are you using PhotoExporter because if you are, you can have it write the EXIF data. See ExportOptions().exiftool.I'm in the middle of a refactoring of some of the export code to implement a
push-exif
command (#160) and i…