mwg and forcing iptc

Started by Alan Clifford, January 03, 2013, 12:23:52 PM

Previous topic - Next topic

Alan Clifford

In a script, probably written before I read about mwg, I'm putting in various stuff that I guess should be changed to mwg.  But according to the docs., if iptc doesn't exist already, not iptc tags will be added.  Is there a "best" way of forcing iptc tags to be written when, for example, mwg:creator, is written?
 
  exiftool -m -P -artist="${ARTIST}" \
    -creator="${ARTIST}" \
    -by-line="${ARTIST}" \
    -creatorworkemail="${EMAIL}" \
    -creatorworkurl="${WWW}" \
    -usageterms="${USAGETERMS}" \
    -copyright="${COPYRIGHT}${copyrightdate}" \
    -copyrightnotice="${COPYRIGHT}${copyrightdate}" \
    -rights="${COPYRIGHT}${copyrightdate}" \
    -overwrite_original -previewimage= \
    "${xmpphoto}" >&2


Phil Harvey

To force IPTC to be written when writing MWG:Creator, all you need to do is write any other IPTC tag at the same time.  You could do this by writing a number of tags, including these:

1) write IPTC:ApplicationRecordVersion=4

2) write IPTC:CodedCharacterSet=UTF8

But these options are maybe a bit dangerous if you are dealing with initial IPTC from various sources. 

Perhaps in this case it would be easiest to just write IPTC:By-line in the same command after setting MWG:Creator.

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

Alan Clifford