ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: exifan on February 22, 2017, 12:34:02 PM

Title: sort picture by facetag
Post by: exifan on February 22, 2017, 12:34:02 PM
Hi, First thank you for this excellent tool. I have been playing with it for a few days and impressed with its capabilities. Still learning  :-)

I have all my pictures face tagged in Picasa (3.9). I need to share some pictures with a friend and am trying to see if exiftool can help me filter and sort them. I'd like to filter all pictures that include a particular face tag, copy them to a new folder organized by year (from creation date) and into subfolders by months (again from creation date).

Is this possible? any pointers on how to do this, much appreciated.

Thanks,
Title: Re: sort picture by facetag
Post by: Phil Harvey on February 22, 2017, 12:46:09 PM
This should be simple.  You need to first figure out what tag the name is stored in (look through the output of "exiftool -s FILE"), then do this:

exiftool -if "$TAG =~ /NAME/i" -o . "-directory<datetimeoriginal" -d DSTDIR/%Y/%m SRCDIR

where TAG is the tag name, NAME is the person name, SRCDIR is the source directory, and DSTDIR is the directory you want them copied to.

- Phil
Title: Re: sort picture by facetag
Post by: exifan on February 22, 2017, 01:57:18 PM
Works like a charm :-) Many thanks Phil... Had to change double quotes with single.  FYI.. is case anyone is curious, Picasa stores the face tags in RegionName, with RegionType = Face.

:)