sort picture by facetag

Started by exifan, February 22, 2017, 12:34:02 PM

Previous topic - Next topic

exifan

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,

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

exifan

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.

:)