ExifTool Forum

ExifTool => Newbies => Topic started by: chess on October 01, 2018, 03:35:22 AM

Title: Filter Whatsapp Fotos and move to a seperate Folder
Post by: chess on October 01, 2018, 03:35:22 AM
Hi there,

I like to seperate my Fotos into those I have taken with my smartphone and those having received by Whatsapp. Looking onto the exif Data I found out, that my apple always sets the 'LensMake' tag to Apple and all without are not take by the smartphone. What would be the exiftool command to filter the ones not having apple as 'LensMake' / having 'LensMake' Empty and move them to a subdirectory calles WhatsApp?

Thanks for you help,

Carsten
Title: Re: Filter Whatsapp Fotos and move to a seperate Folder
Post by: StarGeek on October 01, 2018, 04:19:03 AM
Try
exiftool -if "not $LensMake" -directory=WhatsApp FileOrDir

Swap double/single quotes if you're on Mac/Linux.
Title: Re: Filter Whatsapp Fotos and move to a seperate Folder
Post by: chess on October 01, 2018, 01:01:39 PM
Thanks, thats works perfectly. How would the Statement look like, if I want to filter for a specific model?

Thanks,
Carsten
Title: Re: Filter Whatsapp Fotos and move to a seperate Folder
Post by: Phil Harvey on October 01, 2018, 01:15:47 PM
Something like this:

exiftool -if "not $LensMake and $model =~ /SOME MODEL NAME/i" -directory=WhatsApp FileOrDir

This will match a partial string inside the value of the Model tag, with case-insensitve matching (remove the "i" for case sensitivity).

- Phil
Title: Re: Filter Whatsapp Fotos and move to a seperate Folder
Post by: chess on October 02, 2018, 09:54:29 AM
Thanks, that works perfectly.  :)