Hi - I'm using the following command to tweak the embedded metadata in a directory of tif files:
exiftool -overwrite_original_in_place -exif:all= -iptc:all= -photoshop:all= -xmp:all= -tagsfromfile %d%f.tif -xmp:all -copyright= -createdate= -creatortool= -dateacquired= -datetimeoriginal= -description= "-gps*=" -documentid= -historyaction= -historychanged= -historyinstanceid= -historysoftwareagent= -historywhen= -imagedescription= -instanceid= -metadatadate= -originaldocumentid= -rights= -software= -subseccreatedate= -title= -xmptoolkit= -xpcomment= -xpkeywords= -xpsubject= -m Preservation
For some reason, the application gives a warning for the first file in the directory, but edits all the others. Sure enough, the embedded metadata in the first file is a bit different.
Ideas? Other files that were created with the same device at the same time (iPhone) seem to work fine.
Thanks for any assistance you can offer.
This warning will happen if the .tif file doesn't contain any of the tags you are trying to copy. I don't know why the 1st .tif should be different -- that is a question for you to answer.
Also, are you running this on the .tif files themselves? Are there other files in the Preservation directory?
- Phil
So strange. There are no other file types in the directory. Here's a link to the file if you're interested.
https://www.dropbox.com/s/84pncz3pqwgdi9g/RDA_AP_BCDV02_001a_P.tif?dl=0
Workaround is to copy/paste image into another tif file. Good enough. Wonder what the problem was though? Maybe the camera app?
I won't bump this again - just curious - anybody else want to try to understand what's wrong with the original file?
In what way was the metadata different on that first file? Is the file you linked a before or after file? Running your command on the linked file doesn't produce an error.
What OS are you on? I'm guessing a Mac because of the -overwrite_original_in_place option (https://exiftool.org/exiftool_pod.html#overwrite_original_in_place). If so, I'd check for a hidden file of some sort maybe?
The only way your command would produce that error is if there wasn't any XMP data in the file to begin with, as that's the only data you're copying back into the file.
That's the before file. I'm on Windows 10 using whatever rev. MS has forced on me.
That file works correctly with the command as listed.
C:\>exiftool -overwrite_original_in_place -exif:all= -iptc:all= -photoshop:all= -xmp:all= -tagsfromfile %d%f.tif -xmp:all -copyright= -createdate= -creatortool= -dateacquired= -datetimeoriginal= -description= "-gps*=" -documentid= -historyaction= -historychanged= -historyinstanceid= -historysoftwareagent= -historywhen= -imagedescription= -instanceid= -metadatadate= -originaldocumentid= -rights= -software= -subseccreatedate= -title= -xmptoolkit= -xpcomment= -xpkeywords= -xpsubject= -m Y:\!temp\aaa\RDA_AP_BCDV02_001a_P.tif
1 image files updated
I took a bunch of random tifs, dropped them in the same directory, and renamed them so they came after that file and still no problems.
Try adding the -v (-verbose) option (https://exiftool.org/exiftool_pod.html#v-NUM--verbose) and check the output to see what's really happening.
Thanks for your help. I copy pasted the image into a new tif, dumped it into the directory with the others and everything worked. Not sure what's up with the file, leaning toward it being an issue with the camera app I'm using on this iPhone. Not going to do anymore troubleshooting of it.
cheers,
dave