How to set XMP:ProductName?

Started by curio77, December 05, 2024, 01:58:31 AM

Previous topic - Next topic

curio77

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.

Phil Harvey

I think you are talking about the XMP iptcExt tags.  You can use the ProductInImageName tag to set that one field of the ProductInImage structure.

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

curio77

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`?

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

curio77

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.

StarGeek

Use the command in FAQ #3 to get the exact name and the exact group it belongs to.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

StarGeek

#6
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.

If the group is XMP-levi, then you need to use the config file in this post.

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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

curio77

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).