Have you ever used the amazing PhotoRec data recovery software? Well I often delete some of my pictures, so I’m very used to this tool. It usually finds really many deleted files, and manually looking through them is not really funny.
That’s why I wrote a Python script to make that job easier.
You can get it from my GitHub repository: http://adf.ly/8355333/python-tools-on-github
THIS IS AN ADVERTISED LINK! I wish I didn’t need to put ads 🙁 Do not do anything it asks you to do! In order to get past it, simply click on it, wait 5 seconds, then click on the yellow “SKIP AD” button on the top-right corner of the screen. Thank you for your understanding.
Just cd to the pictures directory and run ./get_exif.py <filename>; it will print your file’s EXIF tags. Then you just need to run this:
./exifcopy.py /path/to/source/dir /path/to/dest/dir MyEXIFTag ExifValue
As the program runs it will show you the files that matched and where they’re being copied to. exifmove.py does the same thing, except for the fact that it will move the files instead of copying them.
In a future version it will be possible to find pictures using their resolution.
That’s it for now! Also check out my other tools and repositories, and don’t forget to comment if something isn’t clear! 🙂 If you found this post useful, share it!