Setting UserCommant Tag

Started by ProAssist, June 24, 2016, 05:57:02 AM

Previous topic - Next topic

ProAssist

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

Phil Harvey

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 for instructions on how to activate a config file.

- 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 ($).

ProAssist

That did it - Thank you for your help and Thank you for developing this awesome software!