Friday, December 27, 2013

Ubuntu - Batch Convert Nikon RAW (NEF) Files to JPEG

NEF stands for Nikon Raw Image file, if you need to convert multiple .NEF files to the JPEG format, you can use the UFRaw tool. UFRaw is a utility to read and manipulate raw images from digital cameras. First off, install the UFRaw package on your system. UFRaw is available in the software repositories of many popular Linux distributions, so you can install it using your distro’s package manager. On Ubuntu, use the following command:

# apt-get install ufraw
Then start converting:
# ufraw-batch --out-type=jpeg --out-path=./jpeg-file ./*.NEF

You can even create an alias, edit ~/.bash_aliases and add the line:
alias nef2jpeg=’ufraw-batch –out-type=jpeg –out-path=./ ./*.NEF’
then
$ source .bashrc

then just go into the NEF directory do a :
$ n2f2jpeg

No comments: