Author Topic: Copy/paste the rating of a picture  (Read 5587 times)

benkunz

  • Newbie
  • *
  • Posts: 6
Copy/paste the rating of a picture
« 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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16664
    • ExifTool Home Page
Re: Copy/paste the rating of a picture
« Reply #1 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

benkunz

  • Newbie
  • *
  • Posts: 6
Re: Copy/paste the rating of a picture
« Reply #2 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$

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16664
    • ExifTool Home Page
Re: Copy/paste the rating of a picture
« Reply #3 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

benkunz

  • Newbie
  • *
  • Posts: 6
Re: Copy/paste the rating of a picture
« Reply #4 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...

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16664
    • ExifTool Home Page
Re: Copy/paste the rating of a picture
« Reply #5 on: April 04, 2010, 07:44:02 AM »
There are various Rating tags.  Consult FAQ number 3 for guidance in determining the one you want.

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