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
- Host: GitHub
- URL: https://github.com/cycneuramus/ifexifextract
- Owner: cycneuramus
- Created: 2022-08-16T14:24:50.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T07:12:21.000Z (12 months ago)
- Last Synced: 2025-01-03T00:35:01.963Z (5 months ago)
- Topics: exif, exif-metadata, exiftool, go, golang, image-organization, image-organizer
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```
### ExampleTo 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"
```