processing with "is there a particular nikon field"

Started by Alan Clifford, March 02, 2011, 09:09:33 AM

Previous topic - Next topic

Alan Clifford

Hello.

What I want to do is do some processing if there are specific nikon fields, specifically timezone and daylightsavings.

I see that "exiftool -nikon:timezone ahc_0514.nef" works as well as "exiftool -makernotes:timezone ahc_0514.nef" so would just reading the former and testing for content suffice?  Otherwise, what do I use to identify that the maker notes are Nikon's?

This has come up because I have a shiny new Nikon D7000 and it stores this information.  And I want to use it.

Alan

Phil Harvey

Hi Alan,

I don't understand the details of what you are asking.  To process images containing only the Nikon:Timezone tag, use a command like this:

exiftool -if "$nikon:Timezone" ...

(use double quotes as above in Windows, or single quotes on Mac/Linux)

To identify the maker notes as nikon, you could use -if "$make=~/Nikon/i".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Alan Clifford

Thanks for the reply.

Sorry, I should have been a more specific. I am doing the processing in bash so

TIMEZONE=`exiftool nikon:timezone blah.jpg`

and test for the value of TIMEZONE is what I am thinking of.  If not null nor empty, then do my timezone processing.  So the question is really, is querying nikon:timezone sufficient or do I have to check something else to check for whose the make notes are?  I have files from various cameras and I wouldn't want another instance of timezone, present or future, in other makers notes to be used.

Alan

Phil Harvey

Hi Alan,

I think I understand now.  If you extract Nikon:Timezone, you are guaranteed that it is coming from the Nikon maker notes.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).