Skip to content

Instantly share code, notes, and snippets.

@arth2o
Created January 29, 2017 06:42
Show Gist options
  • Save arth2o/fb2bd24f132716015377562317b32878 to your computer and use it in GitHub Desktop.
Save arth2o/fb2bd24f132716015377562317b32878 to your computer and use it in GitHub Desktop.
Batch convert raw NEF files to JPGs with exiftool from Linux command-line. 1, Exiftool have to be installed. Put this pieces of code to a file for example neftojpg.sh. chmod +x neftojppg.sh. Run: ./neftojpg.sh /directory/where/pictures/are/.
#!/bin/bash
DIR="$@"
for f in $DIR*.NEF
do
name=`echo "$f" | sed -e "s/.NEF$//g"`
exiftool -b -JpgFromRaw "$f" > "${name}.jpg"
done
@Postroggy
Copy link

Cool, I love U so much. you're mine rollingstone

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