Add keyword tags to HEIC as an XMP sidecar from google takeout json

Started by filip, December 05, 2023, 05:15:25 PM

Previous topic - Next topic

filip

Hi!
I'm going crazy.
I have a json file with tags, jpg and heic files.

This script works for getting the keywords into the keywords section (which I use in Adobe Lightroom) for the JPEG.

exiftool -tagsfromfile %d%f.%e.json -file1 %d%f.%e '-Keywords<PeopleName' -r .
I understand this cannot work with heic files as the legacy IPTC is not supported
(even though keywords are in IPTC core as well I think so I'm still confused.)

Can I just create sidecars for the heic files and write all the data into them?!

I tried something like
'-XMP-xmp:Keywords<PeopleName', but in general it's not working for me.

Thanks for any help!
I'm going crazy here at a brink of converting everything to jpeg and losing the heic benefits...

Phil Harvey

You should be writing XMP:Subject -- this is the XMP equivalent of the old IPTC:Keywords

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).