Author Topic: How can I use "Format File" to extract the first [MakerNotes] F Number  (Read 1789 times)

andyquinlan

  • Jr. Member
  • **
  • Posts: 26
    • GUI2 Program for [ExifTool ver 9.09]
Canon digital image from Canon DIGITAL IXUS 100 IS

Extracted with

a) [ExifTool -a -m -u -G ] with ExifTool Ver: 8.72  gives three values for "F Number"


[EXIF]              F Number                   : 9.0
[MakerNotes]   F Number                   : 8.9
[MakerNotes]   F Number                   : 9

---------------------------------------------------------


b) Extracted with (Hex numbers)

ExifTool -a -H Fnumber  abc.jpg

0x829d F Number                        : 9.0
0x0015 F Number                        : 8.9
0x0006 F Number                        : 9

----------------------------------------------------

c) using Format File
 
    $Canon:FNumber

 Always Gives output   value for  [MakerNotes]   F Number   i.e.         9 

------------------------------------------------
Question:  How can I use "Format File"  to extract the first  [MakerNotes]   F Number  value  of   : 8.9 ?

Andy

Andy

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16703
    • ExifTool Home Page
Re: How can I use "Format File" to extract the first [MakerNotes] F Number
« Reply #1 on: January 15, 2012, 11:40:02 AM »
Hi Andy,

For tags like this, you must go to the family 4 groups to differentiate them:

Code: [Select]
> exiftool -fnumber -G4 -a image.jpg
[]              F Number                        : 9.0
[Copy1]         F Number                        : 8.9
[Copy2]         F Number                        : 9

So to extract only the 2nd one:

exiftool -copy1:fnumber image.jpg

or "$copy1:fnumber" in a format file.

- 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 ($).

andyquinlan

  • Jr. Member
  • **
  • Posts: 26
    • GUI2 Program for [ExifTool ver 9.09]
Re: How can I use "Format File" to extract the first [MakerNotes] F Number
« Reply #2 on: January 16, 2012, 07:55:41 PM »
Hi Phil,

Many thanks for your help.

Andy
Andy