Skip to content

Instantly share code, notes, and snippets.

@vearutop
Last active June 5, 2018 08:48
Show Gist options
  • Save vearutop/529e60235f5fd66da61cd9b94f4607f6 to your computer and use it in GitHub Desktop.
Save vearutop/529e60235f5fd66da61cd9b94f4607f6 to your computer and use it in GitHub Desktop.
Quick extract CR2 thumbnail to JPG keeping original EXIF with exiv2
#!/bin/bash
exiv2 ex *.CR2
exiv2 -ep3 -l ./ *.CR2
for f in *.exv; do echo $f; mv "${f%.exv}.exv" "${f%.exv}-preview3.exv"; done
exiv2 in *.jpg
@vearutop
Copy link
Author

vearutop commented Jun 5, 2018

exiv2 ex *.CR2;exiv2 -ep3 -l ./ *.CR2;for f in *.exv; do echo $f; mv "${f%.exv}.exv" "${f%.exv}-preview3.exv"; done;exiv2 in *.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment