0.1.1 • Published 10 years ago
exif-date-infer v0.1.1
exif-date-infer
Adds Exif tag DateTimeOriginal to an image using a date inferred from the filename, if the file does not have an exif date entry already.
Useful for adding back Exif dates to images received from messengers like WhatsApp and Facebook Messenger before importing to your photo library.
Currently only supports WhatsApp and Facebook Messenger image filenames.
I'm not responsible for any issues, problems, lost of data from the use of this software. Always remember to backup your data before manipulating them!
Install
npm install -g exif-date-inferUsage
exif-date-infer /path/to/your/images [--overwrite] [--force]--overwritewill write the exif data back into your current image file, where as the default behavior is to create a new file with the_date_inferredsuffix added to the original filename.--forcewill force writing of inferred date even if exif already exists in the original image.
Running Tests
npm test
TODOs
Pull requests are welcome!
- Add more date inference methods/patterns (see the
InferenceMethodsdirectory) - Write test for fb messenger inference method