ExifTool Forum

ExifTool => Newbies => Topic started by: cb220 on May 10, 2019, 11:40:50 PM

Title: CanonImageType image files unchanged
Post by: cb220 on May 10, 2019, 11:40:50 PM
I'm trying to use this command:

exiftool.pl -CanonImageType="Canon EOS M50" image.cr3

but I'm getting 0 image files updated, 1 image files unchanged.

I've used -s to make sure that CanonImageType is indeed a tag. Specifically, it's Canon:CanonImageType (using this specification doesn't change the image file, either). Looking at the tags section of the ExifTool homepage CanonImageType should be a writable string. Oh, I'm also running the command line as admin.

Any ideas? Thanks in advance.
Title: Re: CanonImageType image files unchanged
Post by: StarGeek on May 11, 2019, 12:38:21 AM
Exiftool currently only has limited ability to write .CR3 files.  XMP and Quicktime tags are the only thing it can edit, according to theSupported File Types (https://exiftool.org/index.html#supported) table. 
Title: Re: CanonImageType image files unchanged
Post by: cb220 on May 11, 2019, 01:02:17 AM
Ahh, gotcha. That's too bad :(.

Thanks for letting me know.
Title: Re: CanonImageType image files unchanged
Post by: Phil Harvey on May 11, 2019, 06:53:42 AM
This is something that may change in the foreseeable future.

- Phil
Title: Re: CanonImageType image files unchanged
Post by: cb220 on May 18, 2019, 12:28:59 AM
I see that version 11.43 added more support for writing CR3 files!

Unfortunately, after updating I'm still having no luck editing the CanonImageType tag in my files. The supported file types table lists R/W for Canon tags, so I feel like it should be working now. Am I overlooking something?
Title: Re: CanonImageType image files unchanged
Post by: Phil Harvey on May 18, 2019, 05:58:49 AM
No.  Apparently I missed something.  I'll look into this and report back when I've figured it out.

- Phil
Title: Re: CanonImageType image files unchanged
Post by: Phil Harvey on May 18, 2019, 08:53:41 AM
Hmmm.  11.43 will write tags in any of the Canon binary data structures, but not in the top-level MakerNote directory, which explains why it worked for me when I tested it.  I'll figure out why and this will be fixed in ExifTool 11.44.

- Phil

Edit:  I found the reason, and have a patch in place to fix it, but now I just have to understand why:  Internally I am using a directory name of "MakerNotes" for the top-level makernote directory in a Canon JPG image, but "Canon" in a CR3, and somehow this is affecting the writing logic.
Title: Re: CanonImageType image files unchanged
Post by: Phil Harvey on May 21, 2019, 08:17:44 AM
Version 11.44 is now available.  This version should do what you wanted.

The difference was that the makernotes are housed behind a TIFF header in the CR3, but not in other formats, so in their processing ExifTool was drilling down through one extra directory level, which resulted in the different directory name.

- Phil