ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jmwjmw on September 13, 2011, 05:34:32 PM

Title: copying exif tags to iptc
Post by: jmwjmw on September 13, 2011, 05:34:32 PM
Hi -- I have succesfully written tags from exif to xmp using the exif2xmp.arg. I also have written tags from xmp to iptc using xmp2iptc.arg.
I was wondering if there was anyway to write tags from exif to iptc directly. If not, is their a way to run both of the above args in the same command in the command line?
thanks for any help you can offer.
Title: Re: copying exif tags to iptc
Post by: Phil Harvey on September 13, 2011, 08:56:29 PM
Interesting that this has never come up.  Maybe it is because there isn't much overlap between EXIF and IPTC, but there are enough tags to make this worthwhile.  I will add the following file to the next exiftool release:

#------------------------------------------------------------------------------
# File:         exif2iptc.args
#
# Description:  Tag name translations for converting EXIF to IPTC
#
# Usage:        exiftool -tagsFromFile SRCFILE -@ exif2iptc.args DSTFILE
#
# Revisions:    2011/09/13 - P. Harvey Created
#
# Notes:        IPTC requires a timezone but EXIF does not support one, so
#               when the time is copied the local timezone is assumed.
#------------------------------------------------------------------------------
-IPTC:By-line < EXIF:Artist
-IPTC:CopyrightNotice < EXIF:Copyright
-IPTC:Caption-Abstract < EXIF:ImageDescription
-IPTC:DateCreated < EXIF:DateTimeOriginal
-IPTC:TimeCreated < EXIF:DateTimeOriginal
-IPTC:DigitalCreationDate < EXIF:CreateDate
-IPTC:DigitalCreationTime < EXIF:CreateDate
# end


- Phil
Title: Re: copying exif tags to iptc
Post by: jmwjmw on September 15, 2011, 05:21:36 PM
Thanks very much.

In the meantime, this seemed to work: exiftool -ext jpg "-EXIF:Artist>IPTC:By-line" "-EXIF:ImageDescription>IPTC:caption-abstract" mypic
Title: Re: copying exif tags to iptc
Post by: quitetall on February 12, 2012, 12:59:17 AM
Hello

Did this feature get built?

Specifically, I'd like to copy the EXIF field "Camera Model" to IPTC.

If it has been built, any pointers?

Thanks!
Title: Re: copying exif tags to iptc
Post by: BogdanH on February 12, 2012, 02:43:45 AM
Hi,

Yes, above file (exif2iptc.args) can be found in full ExifTool distribution, which can be downloaded from ExifTool homepage (choose "Download version n.nn" there).

IPTC doesn't contain tag ment for "Camera model". But I am curious... what's the reason you would like to have "Camera model" in IPTC? I mean, that value is expected to be in Exif.

Bogdan
Title: Re: copying exif tags to iptc
Post by: quitetall on February 13, 2012, 05:25:02 AM
Well, thats a good question!

On my Mac I have a folder full of images from various mobile phones, with various naming schemes. I can fix the naming scheme, and what I like to do is sort by camera. It seemed to me that if I can get Camera data into Mac OSX comments, I can show the comments in the finder and thus sort by camera, and then put the photos into folders.

I suppose the alternate if I knew enough is to prefix the filename with the camera model?
Title: Re: copying exif tags to iptc
Post by: Phil Harvey on February 13, 2012, 07:22:02 AM
Writing the camera model into the file name is easy, but there are often complications because if the model name contains characters that you don't want in the file name.

See this thread (https://exiftool.org/forum/index.php/topic,3424.0.html) for a discussion of this.

- Phil