ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Jonz on December 08, 2010, 03:43:32 PM

Title: Write IPTC tag to EXIF:ImageDescription
Post by: Jonz on December 08, 2010, 03:43:32 PM
Hi

I've been trying to use ExifTool running in a DOS window (Windows 7) to do the following:

Process a directory of jpgs copying the IPTC:Headline tag content to an EXIF:ImageDescription tag. The EXIF:ImageDescription tag does not exist in the source files.

I can't seem to get this to work and would appreciate any help.

Thanks very much,

Jonathan
Title: Re: Write IPTC tag to EXIF:ImageDescription
Post by: Phil Harvey on December 08, 2010, 04:02:05 PM
Hi Jonathan,

The command is:

exiftool "-exif:imagedescription<iptc:headline" DIR

where DIR is the name of a directory containing the images.

- Phil
Title: Re: Write IPTC tag to EXIF:ImageDescription
Post by: Jonz on December 08, 2010, 04:15:04 PM
Thanks very much! Is it possible to do this with support for accents etc (UTF8 is listed as the codedcharacterset in IPTC).
Title: Re: Write IPTC tag to EXIF:ImageDescription
Post by: Phil Harvey on December 08, 2010, 08:39:01 PM
This command will work for special characters too, but there are some complications which may cause unexpected results:

1) The EXIF:ImageDescription tag does not officially support UTF-8, although some applications (like ExifTool) don't have a problem with this.

2) Character encoding in IPTC is problematic.  CodedCharacterSet must be set properly in the IPTC information.  If it isn't set, the exiftool -charset IPTC=XXX option may be used to specify the IPTC encoding.

This is all explained in FAQ number 10 (https://exiftool.org/faq.html#Q10).

- Phil