ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: benkunz on March 26, 2010, 04:22:25 AM

Title: Copy/paste the rating of a picture
Post by: benkunz on March 26, 2010, 04:22:25 AM
Hi,
So here is what I'd like to do. I have 2 softwares (adobe bridge + bibble) that are able to deal the star rating system of an image. Bibble creates and assign from 0 to 5 star to an image, and bridge is able to recognize on the generated images how many stars they have. Now I would like with exiftool to copy the star rating from one image to another. I've tried with "exiftool -tagsfromfile src dst" but it does not copy the star rating, but it copies other stuff (GPS,keywords,...). Do you have any idea why ? And how I could manage to copy the rating?
Thanks
Title: Re: Copy/paste the rating of a picture
Post by: Phil Harvey on March 26, 2010, 07:41:22 AM
The -tagsFromFile option without any tag names will copy all tags to the default locations.  It sounds like you need to be more specific than this.  Use the -a -G -s options when extracting information from the Bibble and Bridge files to see where the rating is stored, then use an argument like "-DSTGRP:DSTTAG<SRCGRP:SRCTAG" to copy the exact tag to the location you want.

If you are lucky, the rating scheme used by both softwares will have the same scale.  If not, you will have to create a user-defined tag to multiply or divide the rating by an appropriate factor.  If you give me more details about the exact tags used, I can help with this if necessary.

- Phil
Title: Re: Copy/paste the rating of a picture
Post by: benkunz on March 29, 2010, 03:07:57 PM
Here is the tag I want to copy:

MacBook:tague benoit$ exiftool -a -G -s _DSC7826.jpg | grep Rating
[XMP]           Rating                          : 3
MacBook:tague benoit$

What is the command to copy this tag? I tried this but did not succeed:

MacBook:tague benoit$ exiftool -XMP:Rating<XMP:Rating _DSC7826.jpg ../nontague/_DSC7826.jpg
-bash: XMP:Rating: No such file or directory
MacBook:tague benoit$
Title: Re: Copy/paste the rating of a picture
Post by: Phil Harvey on March 29, 2010, 04:58:43 PM
You were close, but your command copies tags within each file, instead of between files (and also is missing the required quotes around the argument containing a less-than symbol).  Try this instead:

exiftool -tagsfromfile _DSC7826.jpg -xmp:rating ../nontague/_DSC7826.jpg

- Phil
Title: Re: Copy/paste the rating of a picture
Post by: benkunz on April 04, 2010, 03:04:52 AM
your command line was correct, but it did not copy the rating... I guess modifying the rating field is not enough...
Title: Re: Copy/paste the rating of a picture
Post by: Phil Harvey on April 04, 2010, 07:44:02 AM
There are various Rating tags.  Consult FAQ number 3 (https://exiftool.org/faq.html#Q3) for guidance in determining the one you want.

- Phil