Copying star ratings and colour labels from xmp to jpeg files

Started by YetAnotherExifer, September 07, 2022, 12:44:24 PM

Previous topic - Next topic

YetAnotherExifer

I have processed a number of jpeg files in CaptureOne, assigning colour labels and star ratings, which are saved in separate .xmp files.
I believe the tags are "Rating" and "Label".

How can I embed these tags into the jpeg themselves? And does it make a difference is some files are .jpg and others .jpeg?

I'd like one command to process all the files in a given folder.

After many attempts, the closest I got to was:

exiftool -tagsfromfile %d%f.xmp -all:all -r -overwrite_original -P -ext jpg

but this doesn't work (no file specified).

This is the closest discussions I found: https://exiftool.org/forum/index.php?topic=5539.0

The GUI seems to do something similar (copy into all JPG: https://exiftool.org/gui/#m_exp_imp ) but I'd like to understand how to do it from the command line

Thank you!

greybeard

exiftool -tagsfromfile %d%f.xmp -all:all -r -overwrite_original -P -ext jpg .

but this doesn't work (no file specified).


You need to specify where the files are - if you want all the files in the current directory and sub-directories add the "." at the end of your command

YetAnotherExifer

I see - thanks!

Should I specify that only "Rating" and "Label" should be updated - is there a way to do that?

Also, is there a way to add a wildcard for the file extension, something like jp*g (which doesn't work) to process both jpg and jpeg files?

Phil Harvey

The command could look like this:

exiftool -tagsfromfile %d%f.xmp -rating -label -r -overwrite_original -P -ext jpg -ext jpeg .
This is assuming that you want to copy the default XMP Rating and Label tags, and adds .JPEG files to the search.

- 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 ($).