ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ProAssist on June 24, 2016, 05:57:02 AM

Title: Setting UserCommant Tag
Post by: ProAssist on June 24, 2016, 05:57:02 AM
I am copying tags from a source image using: exiftool -all= -m -v -tagsfromfile src.jpg -all:all dest.jpg

The source file has a usercommant tag value of "SomeComment\u0000\u0000" which gives a warning of 'Invalid EXIF text encoding for UserCommand'

The destination file usercommant tag gets set to "SomeComment" and drops the remaining characters.

Is there any way to copy the tag exactly even with the invalid characters?  I would like the source and destination file tags to be exactly the same after the copy tag operation.

Thanks

Thanks
Title: Re: Setting UserCommant Tag
Post by: Phil Harvey on June 24, 2016, 08:16:33 AM
To do this would require overriding the ExifTool definition of EXIF:UserComment with a user-defined tag that allows you to do a straight binary copy.  Attached is a config file that will do this for you. See the sample config file (https://exiftool.org/config.html) for instructions on how to activate a config file.

- Phil
Title: Re: Setting UserCommant Tag
Post by: ProAssist on June 24, 2016, 01:13:47 PM
That did it - Thank you for your help and Thank you for developing this awesome software!