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

**URL:** <https://resource.dopus.com/t/help-needed-writing-json-metadata-to-photos-using-a-command-w-exiftool/48053>\
**Category:** Help & Support\
**Created:** [January 18, 2024, 7:31pm UTC](https://resource.dopus.com/t/help-needed-writing-json-metadata-to-photos-using-a-command-w-exiftool/48053 "2024-01-18T19:31:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MegMac](https://resource.dopus.com/user_avatar/resource.dopus.com/megmac/32/51564_2.png) [@MegMac](https://resource.dopus.com/u/MegMac)\
**Post date:** [January 18, 2024, 7:31pm UTC](https://resource.dopus.com/t/help-needed-writing-json-metadata-to-photos-using-a-command-w-exiftool/48053/1 "2024-01-18T19:31:23Z")

</div>

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:

> <https://stackoverflow.com/questions/42024255/bulk-join-json-with-jpg-from-google-takeout/42914024#42914024>

Hopefully someone can help me with this?

---

<div class="post-metadata">

**Author:** ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)\
**Post date:** [January 18, 2024, 8:02pm UTC](https://resource.dopus.com/t/help-needed-writing-json-metadata-to-photos-using-a-command-w-exiftool/48053/2 "2024-01-18T20:02:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![David](https://resource.dopus.com/user_avatar/resource.dopus.com/david/32/51561_2.png) [@David](https://resource.dopus.com/u/David)\
**Post date:** [January 18, 2024, 8:18pm UTC](https://resource.dopus.com/t/help-needed-writing-json-metadata-to-photos-using-a-command-w-exiftool/48053/3 "2024-01-18T20:18:38Z")

</div>

I found this in the ExifTool Documentation.

```auto
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.

```

---

<div class="post-metadata">

**Author:** ![MegMac](https://resource.dopus.com/user_avatar/resource.dopus.com/megmac/32/51564_2.png) [@MegMac](https://resource.dopus.com/u/MegMac)\
**Post date:** [January 18, 2024, 8:36pm UTC](https://resource.dopus.com/t/help-needed-writing-json-metadata-to-photos-using-a-command-w-exiftool/48053/4 "2024-01-18T20:36:41Z")

</div>

lxp,  
It worked fabulously! Thank you so much!
