ExifTool Forum

ExifTool => Newbies => Topic started by: tbmills813 on October 17, 2022, 07:38:01 PM

Title: Can I edit TagsFromFile before writing
Post by: tbmills813 on October 17, 2022, 07:38:01 PM
Hi, I'm trying to do exactly what is described in this post: Tagging face names from Google Takeout json files (https://exiftool.org/forum/index.php?topic=11841.0) except I would like to change one of the names in the json file before writing to the jpeg file.

Is this possible with exiftool or should I use a a different tool to edit the JSON files before copying the tags with exiftool?

Thanks!
Title: Re: Can I edit TagsFromFile before writing
Post by: StarGeek on October 18, 2022, 12:29:46 AM
You would use the Advanced formatting feature (https://exiftool.org/exiftool_pod.html#Advanced-formatting-feature).  You basically insert a bit of Perl code, commonly a RegEx substitution, to edit the value of the tag before it's copied.

If you detail what you want done, we can help you with it.