Help Needed Writing JSON metadata to photos using a command w ExifTool

Hello everyone,
I am trying to figure out how to get an ExifTool command to work in opus. I do use other Exiftool commands in Opus that work well, but I'm stuck on this!

I've Created this MS-DOS Batch command based on commands I found online and made some changes based on my other working ExifTool commands:

@nodeselect

exiftool -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-DateTimeOriginal<PhotoTakenTimeTimestamp" -ext jpg -overwrite_original -@ {allfilepath|filem}

Pause

The source for the command I started with is at:

Hopefully someone can help me with this?

You probably just need to double all %. The rest looks ok.

1 Like

I found this in the ExifTool Documentation.

SRCFILE may be the same as FILE to move information around within a single file. 
In this case, @ may be used to represent the source file (ie. -tagsFromFile @), 
permitting this feature to be used for batch processing multiple files. 
Specified tags are then copied from each file in turn as it is rewritten. 
For advanced batch use, the source file name may also be specified using a FMT string 
in which %d, %f and %e represent the directory, file name and extension of FILE. 
(eg. the current FILE would be represented by %d%f.%e, with the same effect as @). 
See the -w option for FMT string examples.




lxp,
It worked fabulously! Thank you so much!