ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Rüdi on January 16, 2025, 02:50:23 AM

Title: Writing to XMP Camera Name
Post by: Rüdi on January 16, 2025, 02:50:23 AM
Hello,

i tried to write XMP Camera Name.
trying to use the following commands:
exiftool.exe -XMP-photoshop:UniqueCameraModel=42 .\Img.jpg
exiftool.exe -XMP-Camera:UniqueCameraModel=42 .\Img.jpg

resulting in the warning:
doesn't exist or isn't writable

the command
exiftool.exe -XMP:UniqueCameraModel=42 .\Img.jpg

results in
nothing to do

the documentation says string writeable

what's the correct syntax for writing the xmp camera name?
Title: Re: Writing to XMP Camera Name
Post by: Phil Harvey on January 16, 2025, 07:37:19 AM
UniqueCameraModel is an element of the CameraProfiles structure, so it is written with the tag name CameraProfilesUniqueCameraModel.

- Phil
Title: Re: Writing to XMP Camera Name
Post by: StarGeek on January 17, 2025, 09:37:38 AM
See XMP-photoshop tags (https://exiftool.org/TagNames/XMP.html#photoshop).

As a general rule, any tag listing that includes "Struct" in the header, e.g. "XMP Camera Struct", is not a tag you directly write. It lays out the template of a structured tag.

A good example is the XMP LocationDetails Struct (https://exiftool.org/TagNames/XMP.html#LocationDetails). This structure is used in both the LocationCreated and LocationShown tags. You can look at the entries on these two tags and the flattened versions of these tags under XMP-iptcExt tags (https://exiftool.org/TagNames/XMP.html#iptcExt).

See also the Structured Information page (https://exiftool.org/struct.html).