How can I use "Format File" to extract the first [MakerNotes] F Number

Started by Andy Quinlan, January 15, 2012, 11:16:09 AM

Previous topic - Next topic

Andy Quinlan

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

Hi Andy,

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

> 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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Andy Quinlan

Andy