Exiftool creating copies of source files

Started by Nick Payne, November 28, 2013, 12:33:41 AM

Previous topic - Next topic

Nick Payne

When I run the following command to copy exif data from original raw image files to tif copies, exiftool not only creates TIF_original copies of the tif files before updating the exif data in them, but it also renames the source RAF (Fuji raw) files to RAF_original and then creates new RAF copies. Why does this happen? I would have thought that the RAF files are only being read, not written.

exiftool -tagsfromfile *.RAF -all:all *.TIF

Exiftool is version 9.41, running on Ubuntu 13.10.

Phil Harvey

You can't use wildcards in the -tagsFromFile argument.  These wildcards are expanded by the shell into separate arguments, but the -tagsFromFile option only takes one argument.  The rest are interpreted as names of files to process.

As well, I do not recommend using wildcards in the file name arguments.  So try this:

exiftool -tagsfromfile %d%f.RAF -all:all -ext tif .

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