An open API service indexing awesome lists of open source software.

https://github.com/cycneuramus/ifexifextract

<If> a JPEG file contains an <Exif> value, then <Extract> the file to a new directory
https://github.com/cycneuramus/ifexifextract

exif exif-metadata exiftool go golang image-organization image-organizer

Last synced: 3 months ago
JSON representation

<If> a JPEG file contains an <Exif> value, then <Extract> the file to a new directory

Awesome Lists containing this project

README

        

## Overview

This tool traverses a directory tree, finds all JPEG files containing a given EXIF metadata value, and copies them to another directory.

---

```
Usage of IfExifExtract:
-dstDir string
Directory to receive matching files
-exifKey string
EXIF key to query
-exifQuery string
EXIF values to find (comma-separated)
-srcDir string
Directory to scan
```
### Example

To extract all JPEG files where the EXIF key `Subject` has a value of `John Smith` and/or `Jane Smith`:

```
IfExifExtract \
-srcDir=/path/to/source \
-dstDir=/path/to/destination \
-exifKey=Subject \
-exifQuery="John Smith, Jane Smith"
```