ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: kaihp on June 14, 2023, 11:08:27 AM

Title: "Check Mark" field not being written?
Post by: kaihp on June 14, 2023, 11:08:27 AM
I am trying to copy over the "Rating" and "Check Mark" fields from *.JPG files to *.CR3 files from a Canon EOS R3. In a test file I have explicitly set them both using DPP (4.18.0.0, the latest version).

It's probably me that is "holding the tool wrong" (to paraphrase Jobs), but I cannot get "Check Mark" copied over:

$ ~/bin/Image-ExifTool-12.63/exiftool -Rating -CheckMark IMG_6720-Rating_CheckMark.JPG
Rating                          : 2
Check Mark                      : 1
$ ~/bin/Image-ExifTool-12.63/exiftool -TagsFromFile IMG_6720-Rating_CheckMark.JPG -Rating -CheckMark IMG_6720.CR3
    1 image files updated
$ ~/bin/Image-ExifTool-12.63/exiftool -Rating -CheckMark IMG_6720.CR3
Rating                          : 2
$ ~/bin/Image-ExifTool-12.63/exiftool -hex -Rating -CheckMark IMG_6720.CR3
     - Rating                          : 2
$ ~/bin/Image-ExifTool-12.63/exiftool -hex -Rating -CheckMark IMG_6720-Rating_CheckMark.JPG
     - Rating                          : 2
0x10101 Check Mark                     : 1
$ ~/bin/Image-ExifTool-12.63/exiftool -ver
12.63

System is an Ubuntu 20.04.4 LTS, running Linux kernel 5.4.0-147-generic (which shouldn't matter).
I have tried this on a "Ubuntu on Windows" (WSL) which appears to be an Ubuntu 18.04.6 LTS, running exiftool 10.80 (yes, an ancient version).

If anyone is wondering why I want to copy these fields over, then it's because DPP is (also) dog-slow in rendering the raw image (around 6 seconds/image), whereas rendering jpegs are almost instant. By using the JPG's to cull the images, I can work through them quite quickly, use a script to delete (Rating=-1) or copy over the Check Mark and Rating fields and them process the few RAWs left.
When I have 4400 images from a single day, then I am willing to jump through hoops like this.
Title: Re: "Check Mark" field not being written?
Post by: Phil Harvey on June 14, 2023, 11:25:28 AM
> exiftool IMG_6720-Rating_CheckMark.JPG -rating -checkmark -G1
[XMP-xmp]       Rating                          : 2
[CanonDR4]      Check Mark                      : 1

ExifTool can edit CanonDR4 information, but can't create new CanonDR4 tags.

Maybe copy it into another XMP tag instead.

- Phil
Title: Re: "Check Mark" field not being written?
Post by: kaihp on June 14, 2023, 02:36:52 PM
Quote from: Phil Harvey on June 14, 2023, 11:25:28 AMExifTool can edit CanonDR4 information, but can't create new CanonDR4 tags.

Maybe copy it into another XMP tag instead.

Maybe make this more clear to the user? exiftool -v only spits out
...
  Creating UUID-Canon2
  Creating CanonVRD
  Deleting UUID-Canon2
which is not a very clear error message.

For my purpose, I can manage without the Check Mark. The Rating field is critical.
Title: Re: "Check Mark" field not being written?
Post by: Phil Harvey on June 14, 2023, 03:05:37 PM
Those messages are definitely not very helpful to you.  ExifTool can create a CanonVRD record, but only if a full CanonVRD or CanonDR4 block is being written, which it isn't.  It is a bit of an internal bookkeeping glitch that ExifTool thinks it should be creating a CanonVRD record in the first place.  I could fix that, but it wouldn't help here at all.  ExifTool doesn't emit warnings for tags that aren't written.  (If it did, the number of warnings would be tremendous for many commands.)

The bottom line is that I don't see how I can improve the verbose output to make things more clear in this type of issue.

- Phil
Title: Re: "Check Mark" field not being written?
Post by: StarGeek on June 14, 2023, 04:24:13 PM
Also, from FAQ #23 (https://exiftool.org/faq.html#Q23)

QuoteAlso note that MakerNotes tags can not be created or deleted individually, so they can only be written if they already exist in a file. The entire MakerNotes must be created or deleted as a block