Skip to content

Instantly share code, notes, and snippets.

View Postroggy's full-sized avatar
🎯
Focusing

oasis Postroggy

🎯
Focusing
  • Tierra
View GitHub Profile
@arth2o
arth2o / NEF to JPG
Created January 29, 2017 06:42
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