You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the timezone name for a photo cannot be preserved on export. Both the XMP sidecar format and the --exiftool option preserve the UTC offset but this does not preserve the named timezone (e.g. America/Los_Angeles). When restoring a photo with osxphotos import, osxphotos will select a timezone that matches the UTC offset for the photo but this does not guarantee that it is the correct timezone name. The metadata standards do not allow the specification of the name, only the UTC offset.
It is possible to declare custom namespaces in XMP and this is allowed by the XMP spec. Thus osxphotos could create one to store the timezone name (and perhaps other metadata in the future). For example, the following XMP snippet stores the timezone name and does not seem to cause issues with exiftool:
However, exiftool will not read or apply this custom namespace without using a custom config file. This is probably fine as OSXPhotos could read the data directly with CoreGraphics at the time of import or by parsing the XMP file.
Need to play with this and verify that creating a custom sidecar namespace doesn't break other tools like DigiKam and Lightroom.
We could create a separate option to enable this, perhaps --extra-metadata that would output the OSXPhotos specific namespace when using --sidecar.
The text was updated successfully, but these errors were encountered:
See also #1788
Currently, the timezone name for a photo cannot be preserved on export. Both the XMP sidecar format and the --exiftool option preserve the UTC offset but this does not preserve the named timezone (e.g. America/Los_Angeles). When restoring a photo with osxphotos import, osxphotos will select a timezone that matches the UTC offset for the photo but this does not guarantee that it is the correct timezone name. The metadata standards do not allow the specification of the name, only the UTC offset.
It is possible to declare custom namespaces in XMP and this is allowed by the XMP spec. Thus osxphotos could create one to store the timezone name (and perhaps other metadata in the future). For example, the following XMP snippet stores the timezone name and does not seem to cause issues with exiftool:
However, exiftool will not read or apply this custom namespace without using a custom config file. This is probably fine as OSXPhotos could read the data directly with CoreGraphics at the time of import or by parsing the XMP file.
Need to play with this and verify that creating a custom sidecar namespace doesn't break other tools like DigiKam and Lightroom.
We could create a separate option to enable this, perhaps
--extra-metadata
that would output the OSXPhotos specific namespace when using--sidecar
.The text was updated successfully, but these errors were encountered: