ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:40 AM

Title: how to mass copy raw exif date to jpg
Post by: Archive on May 12, 2010, 08:54:40 AM
[Originally posted by lysium on 2009-10-06 10:31:07-07]

hi all,

i would like to copy exif date from canon raw file to the jpg version all file ( thousands ). how can i do this with exiftool. the file name is same as the original raw crw001.raw the jpg is crw001.jpg.

thanks,

ali
Title: Re: how to mass copy raw exif date to jpg
Post by: Archive on May 12, 2010, 08:54:40 AM
[Originally posted by exiftool on 2009-10-06 10:46:36-07]

Hi Ali,

I assume you mean that the raw file has extension ".crw", not ".raw".
If so, here is the command:

Code:
exiftool -tagsfromfile %d%f.crw -datetimeoriginal -ext jpg DIR

where DIR is one or more directory of file names.

This command will process all JPG images specified, inserting
the DateTimeOriginal tag from the corresponding CRW images.

- Phil
Title: Re: how to mass copy raw exif date to jpg
Post by: Archive on May 12, 2010, 08:54:40 AM
[Originally posted by exiftool on 2009-10-06 10:48:10-07]

A typo:  It should read "where DIR is one or more
directory or file names".

- Phil
Title: Re: how to mass copy raw exif date to jpg
Post by: Archive on May 12, 2010, 08:54:40 AM
[Originally posted by lysium on 2009-10-06 16:09:13-07]

hi Phil,

thanks for your help, to be honest i am not familiar with terminal. could you guide me the step. right now i am using mac
the file is in the ali/Desktop/Athena/ all the file in one folder the crw and the jpg all files still in the same name except the extension.

one more question is the command you type for me same with the -createdate? actually after the createdate is the same with the original raw date  i want to add geotagging. my dslr is canon 300d so the i can't add geotag in the raw file.

Thanks

ali
Title: Re: how to mass copy raw exif date to jpg
Post by: Archive on May 12, 2010, 08:54:40 AM
[Originally posted by exiftool on 2009-10-06 16:49:42-07]

Hi Ali,

The CRW images contain only the DateTimeOriginal tag,
so you must use this when copying but you can write
it to any tag you want.  So the step-by-step is:

1. Download and install the Mac OS X version of Exiftool.

2. Launch "Terminal" from your Applications/Utilities folder.

3. Cut the following command and paste it in the terminal
window:

Code:
exiftool -tagsfromfile %d%f.crw -datetimeoriginal -ext jpg ~/Desktop/Athena

The "~" in a path name is a shortcut to save you some typing.
In the Terminal window, "~" represents your home directory
(which is "/Users/ali" in your case).

The above command will preserve all of the original JPG images
by adding "_original" to the file name, and create a new set
of JPG images with the updated information in the same folder.
If nothing happens, the most likely problem is that the directory
name is not exactly correct, so be sure to get this right.  If there
are any spaces in the directory name, you need to put quotes
around it on the command line.

As you noted, this command sets the DateTimeOriginal,
which is the tag you want to set if geotagging with exiftool.
So after this, you can geotag with the following command:

Code:
exiftool -geotag ~/Desktop/track.log -ext jpg ~/Desktop/Athena

(assuming that exiftool supports the format of your track log file,
and that it is called "track.log" on the Desktop.)

But if you are using some other geotagging software which requires
CreateDate to be set, then this command will do it for you:

Code:
 exiftool -tagsfromfile %d%f.crw "-createdate<datetimeoriginal" -ext jpg ~/Desktop/Athena

Or you could set both CreateDate and DateTimeOriginal by adding
"-datetimeoriginal" to the above command just before the "-ext" option.

Hopefully this will get you going.

- Phil
Title: Re: how to mass copy raw exif date to jpg
Post by: Archive on May 12, 2010, 08:54:40 AM
[Originally posted by lysium on 2009-10-07 15:08:29-07]

hi Phil,

thank you very much. it works like charm.

best regards,

ali