The Digital Rag
Real World Information in a Virtual World
Sign Up!
Login
Welcome to The Digital Rag
Wednesday, August 20 2014 @ 05:38 AM PDT

Managing images from the Nikon D70 or D70s - Part 2

Digital Cameras in UseIn part one I gave an overview of what I do with the images from my Nikon D70. You can use these same tips for the Nikon D70s and with little change for any of their other digital cameras. I use Linux almost exclusively (I have Windows but generally keep it in a VMWare window on my desktop for things that I simply can't do otherwise) so my tools and techniques are best suited to others who have Linux.

There is, however, a way to get these tools under Windows and I'll get to that later in another part.

In this and later sections, I'll go into more detail, including scripts and references to the actual tools and how to use them.



I use a mixture of shell (BASH) and PERL scripting for much of my day to day things; mostly shell. I'm currently using Red Hat 9 on my main workstation but have the same scripts working on Fedora Core 4 on my laptop. In this segment I'll deal with the various pieces of the puzzle and in another I'll put them all together the way I use them, which should show you have you can do a similar script for the way you want to do things.

Reading the card:

I have a couple of card readers - my original one from Dazzle just reads CF cards but only at the original USB speed of about 12Mbps. The other is/was a 12-in-1 no-name-brand that ran at USB 2.0 (450Mbps) speed but seems to have a problem now :(

Both hook up to a USB port and the operating system should recognize them as storage devices and assign them a device name. Unless you do something strange to them, they'll likely show up as /dev/sdx where the x will be a letter (a, b, c, etc.) and the file system will be a single partition that will be FAT (or FAT32).

You'll have to discover what your system calls your flash-card reader. Mine calls the file system on it /dev/sda1 because I don't have any SCSI drives or other USB storage devices on my system at the moment. I've added a line in my /etc/fstab file for it: (and made the directory /mnt/camera0). In my final script you'll see that I've actually allowed for the device to be called one of several names - because my workstation is always having things added/changed on it.

/dev/sda1    /mnt/camera0     vfat    noauto,owner,user   0 0
For more information on this incantation you might see the fstab documentation

Once this is done, I can put my card into my reader and type

mount /mnt/camera0
and the camera card is mounted and ready for me to copy the files.

At this point, I create a folder/directory in my camera/photos area that has today's date as part of the name.

mkdir ~/camera/photos/2006Mar10
If that directory already exists and I don't want to just add more photos to it, I'll append a letter (e.g. 2006Mar10a). Now I can copy the photos from the card to the directory
cd ~/camera/photos/2006Mar10 ; cp -av /mnt/camera0/dcim/100dcim2/*  .  
Don't forget the trailing "." period which means "to here" - Windows' copy command always assumes you mean "to here". Linux makes no such assumption, it always uses the last item (arguement) as where to copy to.

The "cp -av" copies the files and retains the date/time stamp information (and shows you what it is doing - the v part means "verbose"). I'll show you that you may not really need this later as the information is actually inside the file too with most cameras - but for now there's no reason not to keep it.

Once the copy is done, you can erase the images from the card in preparation for its next use.

rm -f /mnt/camera0/dcim/100dcim2/*
Then remove the card and put it back into the camera or its carry case.

Dealing with the images:

I usually have my camera set to create a low-res JPG file at the same time it creates the raw (NEF) file. I create a sub directory of the main dated folder called "JPG" and put them in there for reference in case I don't have time to let the workstation create new, high-res ones immediately.

cd ~/camera/photos/2006Mar10 ; mkdir JPG ; mv *.jpg JPG
At this point I can look at the images in the JPG folder and use them to do a first cut at winnowing out the bad ones or picking out the ones I really want to concentrate on. I use gThumb for much of my basic image viewing. It's fairly fast in creating its own thumbnails, and has a built-in cataloging system and the ability to add comments and do some image manipulation to the whole image (color, rotation, etc.) As far as the image manipulation is concerned, I use it mostly to see if an image will "clean up" easily when I use some other tool like GIMP.

Cook some full-res working files

If I'm going to post a contact sheet to my web site or burn a disk for others, I use dcraw to do up a batch of full resolution JPEG files once I've winnowed out the bad ones. Through the use of the shell's piping ability, I can run a couple of commands together and have all the images done in the same fashion.

The basic command for one file is:

dcraw -c -w -g 0.65 dsc_8794.nef | cjpeg -quality 90 > dsc_8794-0.65.jpg
With a little shell magic we can do this for all the original files in the directory:
for file in `ls *.nef | cut -d. -f1`
do
echo "working on file $.nef"
dcraw -c -w -g 0.65 $.nef | cjpeg -quality 90 > $-0.65.jpg
done
Next part I'll show you how to put things all together with my modified dcwrap script.

Trackback

Trackback URL for this entry: http://digital-rag.com/trackback.php/20060310154516747

No trackback comments for this entry.

2 comments

The following comments are owned by whomever posted them. This site is not responsible for what they say.
Authored by: Rolex watches on Wednesday, January 01 2014 @ 08:24 PM PST Managing images from the Nikon D70 or D70s - Part 2
The manufacturers of Rolex watches know that their latest watches are being replicated and to avoid loss of business they make subtle and fine changes to their range of watches. This is a cat and mouse game and as soon as changes are made in the original, http://www.adace.es/leventisforsenate.html a few down the line, they are incorporated in the Swiss replica watches as well. So what does one stand to gain if they are purchasing Swiss replica watches? For one the monetary savings is obvious. Apart from that there is the peace of mind too. If someone is mugged and their original Swiss watch is burgled, they have a lot to think about. Not so for those who have Swiss replica watches on them. They can simple go out and purchase another Swiss replica watches the next day.
Authored by: Anonymous User on Monday, July 21 2014 @ 06:02 AM PDT Managing images from the Nikon D70 or D70s - Part 2
Thank you for this article! I for so long time tried to find some good manual for my camera (cause I've lost an instruction). I also know good resourse where you can convert youtube to mp3. So if you want you can use it)

What's New

Stories

No new stories

Comments last 2 days


Trackbacks last 2 days

No new trackbacks

Older Stories

Monday 28-Nov


Friday 07-Oct


Tuesday 04-Oct


Thursday 15-Sep


Saturday 10-Sep


Tuesday 30-Aug


Saturday 20-Aug


Thursday 18-Aug


Sunday 14-Aug

?

Ads by Clickochet

G+ Public Posts

There was a problem reading this feed (see error.log for details).
?

G+

?

Facebook Page

RSS Feed

Richard's Digital Rag

Poll

How do you like to find out news about the internet and computers?

  •  Newspaper
  •  Radio
  •  TV
  •  Web Search
  •  Favourite Web Site(s)
  •  Pod Cast
  •  Video Online
  •  Email List(s)
  •  RSS - Syndication
  •  Word of mouth
This poll has 0 more questions.
Results
Other polls | 265 votes | 4 comments