ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Andy Quinlan on January 15, 2012, 11:16:09 AM

Title: How can I use "Format File" to extract the first [MakerNotes] F Number
Post by: Andy Quinlan on January 15, 2012, 11:16:09 AM
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

Title: Re: How can I use "Format File" to extract the first [MakerNotes] F Number
Post by: Phil Harvey 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:

> 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
Title: Re: How can I use "Format File" to extract the first [MakerNotes] F Number
Post by: Andy Quinlan on January 16, 2012, 07:55:41 PM
Hi Phil,

Many thanks for your help.

Andy