Brightening Nikon Raw Files when converting to JPG
Axel Rosenski <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I wrote a little shell script for a fast convert from Nikon Raw Files to JPG.
The code snippet below works, but I want to enhance this script for the
ability to take the white balance from the raw file and to brighten the image
for one or two aperture stop.
Is this possible in this command or do I have to use dcraw or ufraw as
suggested here?
> http://photo.net/nikon-camera-forum/00Jf7V
ufraw-batch does not work for me for some reasons and i like to use convert
directly
Thanks in advance
Axel Rosenski
=== SNIP ===
Code:
count_files=1
for neffile in *.[nN][eE][fF]; do
nefext="${neffile##*.}"
jpgfile=$(basename $neffile .$nefext).jpg
# Leichte Entrauschung durch Gauss-Filter und USM. Umwandlung nach JPEG.
convert $neffile \
-quality "85" \
-gaussian 1x1 \
-unsharp 2x1.4+1+0.02 \
-resize "31%" \
-bordercolor "#808080" \
-border 1 \
\( +clone -background black -shadow 75x5+5+5 \) +swap \
-background "#d9d9d9" -layers merge +repage \
-gravity "SouthEast" \
"/home/ar/Multimedia/Bilder/stempel/stempel_axel3.png" \
-gravity "SouthEast" \
-composite $jpgfile
echo "Step 2: transferring EXIF data"
# Übertragung der EXIF-Daten von den nef- auf die JPEG-Dateien.
exiftool -TagsFromFile $neffile -author='Axel Rosenski' -x Orientation
$jpgfile
=== SNIP ===
--
Axel Rosenski
- Administration -
______________________________
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden
Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823
Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:[email protected]
http://www.wave-computer.de