Nikon NEF (RAW) images in Digikam

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Nikon NEF (RAW) images in Digikam

Nigel Gilbert-2
Hi all,

  It's quite possible I am doing something stupid but I want to use
Digikam to organise my Nikon D70 images and I have a couple of
questions.

  1) My camera is set to create two files (*.nef and *.jpg) for each
shot I take, these files have the same name (just a different extension)
and ideally I'd like to keep them together in an album. Also so it would
be nice if they could be renamed together etc.
     I'd be happy if only the jpeg from a JPEG and NEF pair appeared in
the album browser (as there would be two thumbnails which would look the
same otherwise), so long and the raw files are archived and grouped
together with the corresponding JPEG.

  2) I have tried just adding the NEF images into an album but this
doesn't quite work. I've installed the kipi plugins and looked at the
File (MIME) Types configuration to try and see why they don't show up in
the Add Image browser. I just don't understand what the purpose of the
"Raw Files" section is. Mine is set to:

        *.crw *.cr2 *.nef *.raf *.mrw *.orf *.pef *.x3f *.dcr *.kdc *.srf *.raw
*.dng

     But the files are only visible in "Add Images" if I add *.nef to
the "Image Files" section.

     Also, the date the photo was taken is incorrectly displayed and the
orientation is wrong. I presume it isn't possible to determine this
information from a RAW file.
     Are the RAW files getting converted into something else in order to
be kept in the album? (I'd like to avoid this if possible)
     Is there a better way of achieving what I'm trying to do?

  Any help setting me straight on these matters would be appreciated.

  Thanks in advance,
    -Nige

--
Nigel Gilbert <[hidden email]>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Nikon NEF (RAW) images in Digikam

Gilles Caulier
> Hi all,
>
>   It's quite possible I am doing something stupid but I want to use
> Digikam to organise my Nikon D70 images and I have a couple of
> questions.
>
>   1) My camera is set to create two files (*.nef and *.jpg) for each
> shot I take, these files have the same name (just a different extension)
> and ideally I'd like to keep them together in an album. Also so it would
> be nice if they could be renamed together etc.
>      I'd be happy if only the jpeg from a JPEG and NEF pair appeared in
> the album browser (as there would be two thumbnails which would look the
> same otherwise), so long and the raw files are archived and grouped
> together with the corresponding JPEG.
>
>   2) I have tried just adding the NEF images into an album but this
> doesn't quite work. I've installed the kipi plugins and looked at the
> File (MIME) Types configuration to try and see why they don't show up in
> the Add Image browser. I just don't understand what the purpose of the
> "Raw Files" section is. Mine is set to:
>
> *.crw *.cr2 *.nef *.raf *.mrw *.orf *.pef *.x3f *.dcr *.kdc *.srf *.raw
> *.dng
>
>      But the files are only visible in "Add Images" if I add *.nef to
> the "Image Files" section.
>
>      Also, the date the photo was taken is incorrectly displayed and the
> orientation is wrong. I presume it isn't possible to determine this
> information from a RAW file.
>      Are the RAW files getting converted into something else in order to
> be kept in the album? (I'd like to avoid this if possible)
>      Is there a better way of achieving what I'm trying to do?
>
>   Any help setting me straight on these matters would be appreciated.
>
>   Thanks in advance,
>     -Nige

With digikam 0.8.0, to see RAW file thumbnails in album view, you need to
install dcraw on your computer. There is no RAW files support with image
editor in this release.

There is no plan to associate a RAW file with a jpeg file in the future, and
this is a non sense because jpeg file isn't RAW file view and dcraw
program can extract embeded  RAW file thumnails.

RAW file edition will be supported  partially to next 0.8.1 release (8
bits / color / pixel). There is no auto color correction associate (using ICC
profile)

digikam 0.9.0 will support fully RAW file in 16 bits / color / pixel and using
ICC profile. This is work in svn (alpha), but any improvements need to be
done, especially about memory managment and speed.

Regards

Gilles
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Nikon NEF (RAW) images in Digikam

Bugzilla from dennis@meulensteen.nl
In reply to this post by Nigel Gilbert-2
Nigel,

I use a D70 and hav a RAW workflow myself, embedded within DigiKam.
Here's what I do:
  1. Shoot NEF only (no 'jpeg-buddy' files).
  2. Exit digikam
  3. Take card, upload into own directory within digicam album directory using fast reader.
  4. Run a special script (which you may have if you want it). This script scanss through my whole digiKam album dir and
    • Moves all NEF files into a (new)./nef sub dir
    • Makes preview (mail, web) images +/- 700x500 in the original upload directory using fast DC-Raw settings based on saved profile (incl exif)
    • Replaces any missing preview images
    • leaves already processed nef files alone
  5. I then start DigiKam
  6. Using the right menu (open with...) on my PREVIEW images, I fire scripts that:
    • Delete jpeg preview and assoc. nef
    • Open DC-Raw, Gimp etc with the assoc. nef.
Basicaly this allows me to utilise my favorite raw converter and the awesome speed and versatility of DigiKam to best advantage.

Maybe this could be of help to you?

Regards,
Dennis



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Nikon NEF (RAW) images in Digikam

Nigel Gilbert-2
In reply to this post by Nigel Gilbert-2
Hi,

  I'd very much like to have a look at the script you use for converting
the NEF files. That might just solve my problem.

  Thanks in advance,
    -Nige

--
Nigel Gilbert <[hidden email]>


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Nikon NEF (RAW) images in Digikam

Bugzilla from dennis@meulensteen.nl
Nigel Gilbert wrote:
Hi,

  I'd very much like to have a look at the script you use for converting
the NEF files. That might just solve my problem.

  Thanks in advance,
    -Nige

  

Saving the lines below (starting with #!/bin/bash) as filename.sh will allow you to make a link to it on your desktop, or wherever. The program can be started by the command line 'bash /path/to/filename.sh /path/to/directory'.

Although I use it on my own digital photographs, this software is stil under development and should be used at your own risk! Always make backups first.

Regards,
Dennis.


#!/bin/bash
# recurse through directory tree and process all unprocessed nef files
# v. 2.00 (c) Dennis meulensteen, 2005.

fnListDir () {
#Recurse through dir and all its subdirs only acting on files
	cd "$1"	
	
	for item in *
	do
		if [ -d "$item" ] 	#check if this item is a directory
		then
			echo "Directory: $item"
			fnListDir "$item" #recurse into the directory
		else 
			#echo "File: $item"
			fnEvaluate "`pwd`/$item"
		fi

	done
	cd ..

}

fnEvaluate () {
# Finds out what to do based on the extension of the file and the dir it is in

	FPATH=${1%/*} # get: /tmp/my.dir (like dirname)
	FILE=${1##*/} # get: filename.tar.gz (like basename)
	BASE=${FILE%%.*} # get: filename 
	EXT=${FILE#*.} # get: tar.gz
	DIRTYPE=${FPATH##*/} # get: the containing directory

	if [ "$EXT" == "nef" ] || [ "$EXT" == "NEF" ]
	then	
		if [ "$DIRTYPE" == "nef" ] || [ "$DIRTYPE" == "NEF" ]
		then
			#echo "Skip processed NEF" 
			if [ ! -f "../$BASE.jpg"  ] 
			then
				echo "REFRESHING MISSING jpeg Preview Image"
				fnDoConversion "$FPATH" "$FPATH/../$BASE.jpg" "$1"
			fi

		else
			echo "FOUND UNPROCESSED FILE $FPATH/$FILE"
			fnProcessNef "$FPATH" "$FILE" "$BASE"
		fi
	#else
	#	echo "Found Other file!!"
	fi
}

fnProcessNef () {
# Takes a file and:
# places it in the appropriate subdir, 
# then generates preview image
	cd "$1"

	if [ ! -d "$1"/nef ] # if there is no directory for the file to be moved to...
	then
		echo "Making new nef directory: $1/nef"
		mkdir "$1/nef" # make one
	fi
	mv "$1/$2" "$1/nef/$2" #put it in there!
	fnDoConversion "$1" "$1/$3.jpg" "$1/nef/$2" 
}

fnDoConversion () {
#Params: out path, output file, input file
	ufraw-batch --shrink=4 --out-type=jpeg --interpolation=bilinear --out-path="$1" --output="$2" --overwrite "$3"

}

##############################################################
# MAIN
# recurse through the dir looking for files to be processed
fnListDir "$1"

exit 0


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users