ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: curio77 on December 05, 2024, 01:58:31 AM

Title: How to set XMP:ProductName?
Post by: curio77 on December 05, 2024, 01:58:31 AM
I'm trying to fix the metadata on some images that lost some of it during processing from raw using various applications.  Most notably, the XMP Product Name tag got lost, but I can't set it either by `-ProductName=...` or copying all tags from the originating raw file (a DNG) via `-TagsFromFile`, that tag just doesn't get set.

In the former case, `ProductName` is reported to be not writable — is that because it is in an XMP sub-struct, and can I write that as a whole?  If so, how?

In the latter case, depending on the concrete file, I get a warning "Warning: [Minor] Not decoding some large array(s). Ignore minor errors to decode" or "Warning: [minor] Possibly incorrect maker notes offsets (fix by -80548?)", but exiftool claims to have updated the destination file.  Still, the Product Name has not been copied over as other fields have (the source file has it, the destination hasn't, afterwards).

Any help would be much appreciated.
Title: Re: How to set XMP:ProductName?
Post by: Phil Harvey on December 05, 2024, 08:06:51 AM
I think you are talking about the XMP iptcExt tags (https://exiftool.org/TagNames/XMP.html#iptcExt).  You can use the ProductInImageName tag to set that one field of the ProductInImage structure.

- Phil
Title: Re: How to set XMP:ProductName?
Post by: curio77 on December 05, 2024, 09:10:52 AM
Thank you for your reply.  But no, I think that's not it, I refer to ProductName in the XMP ProductDetails Struct (as per the tags overview).  Can I set that too somehow?  And why might it be that that isn't copied along with all other tags with `-tagsFromFile`?
Title: Re: How to set XMP:ProductName?
Post by: Phil Harvey on December 05, 2024, 10:54:25 AM
Quote from: curio77 on December 05, 2024, 09:10:52 AMI refer to ProductName in the XMP ProductDetails Struct (as per the tags overview).  Can I set that too somehow?

That is what I was talking about.  You set it with the tag I mentioned.

QuoteAnd why might it be that that isn't copied along with all other tags with `-tagsFromFile`?

You are either using an old version of ExifTool, or it wasn't written correctly in the first place.

- Phil
Title: Re: How to set XMP:ProductName?
Post by: curio77 on December 05, 2024, 02:11:41 PM
Hmm, somehow, it's not that field.  For the raw with the original tag, with `exiftool -g FILE`, it's listed as `Product Name` under XMP, and the one set via ProductInImageName is listed as `Product In Image Name`, also under XMP.  I can set the latter, but that doesn't set the former and the former also isn't copied with `exiftool -TagsFromFile SRC "-all:all>all:all" DST`.  The source file, in this case, is a DNG from a DJI drone, and it's not specific to that particular file.  I'm on exiftool v13.00, the latest I get via CPAN.
Title: Re: How to set XMP:ProductName?
Post by: StarGeek on December 05, 2024, 03:04:32 PM
Use the command in FAQ #3 (https://exiftool.org/faq.html#Q3) to get the exact name and the exact group it belongs to.
Title: Re: How to set XMP:ProductName?
Post by: StarGeek on December 05, 2024, 03:11:06 PM
If the results from the FAQ #3 command return a group of XMP-BioLifePro, then you will need to use the config file in this post (https://exiftool.org/forum/index.php?msg=66714).

If the group is XMP-levi, then you need to use the config file in this post (https://exiftool.org/forum/index.php?msg=27360).

SG edit: Looking at those posts in more detail, they seem like they were created for private use and are probably not used anywhere outside of that.
Title: Re: How to set XMP:ProductName?
Post by: curio77 on December 06, 2024, 02:15:59 AM
Thank you, StarGeek, that was helpful, at least in revealing that "my" ProductName tag is in XMP-drone-dji.  I guess it really isn't settable then, or only via some Perl hackery, and I've helped myself another way, by re-exporting the images from my raw converter (retaining the tags), replacing the actual image, and going with that.
Title: Re: How to set XMP:ProductName?
Post by: Phil Harvey on December 06, 2024, 07:53:45 AM
ExifTool does define the XMP-drone-dji namespace, but I haven't yet seen the ProductName tag there.  If you can send me a sample containing this tag then I can add support.  My email is philharvey66 at gmail.com

- Phil