I'm trying to find a way to filter through thousands of jpg files, and keep only the files with a certain attribute (such as the camera brand with which the picture was captured). How can I do so?
There are several tools that can extract EXIF data or even manipulate image files based on their EXIF data.
With exiftool, you can rename files based on exif properties. In particular, you can easily dispatch files into subdirectories named after a particular exif property. You can then review the results and delete the directories containing files that you aren't interested in to your leisure.
Exiftool makes this easy, but for illustration, here's a shell snippet that sorts jpeg files into subdirectories based on an EXIF property using exif. The property value must not contain
With Exiv2, replace the
If your files are organized in a directory tree already, call