ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Alan Clifford on December 26, 2020, 02:17:49 PM

Title: This seems a tad illogical
Post by: Alan Clifford on December 26, 2020, 02:17:49 PM
cellini:testwhat3words alan$ exiftool -what3words* test.jpg
What 3 Words                    : apparent.constrict.risen
What 3 Words (xh)               : siyafuneka.mfote.ukwandisa
What 3 Words (af)               : lekkerste.eerlikheid.vierkantige

That showed everything

cellini:testwhat3words alan$ exiftool -what3words test.jpg
What 3 Words                    : apparent.constrict.risen
Without the asterisk, it shows just the default.

cellini:testwhat3words alan$ exiftool -what3words= test.jpg
1 image files updated
I was expecting this to delete just the default

cellini:testwhat3words alan$ exiftool -what3words* test.jpg
cellini:testwhat3words alan$
But everything has gone.
Title: Re: This seems a tad illogical
Post by: Alan Clifford on December 26, 2020, 02:42:38 PM
Found the documentation.


x-default needed.  All better now!
Title: Re: This seems a tad illogical
Post by: Alan Clifford on December 26, 2020, 03:14:02 PM
cellini:testwhat3words alan$ exiftool  -filename -what3words* test.jpg
File Name                       : test.jpg
What 3 Words (xh)               : siyafuneka.mfote.ukwandisa
What 3 Words (af)               : lekkerste.eerlikheid.vierkantige


But I can't get it to work with -p

cellini:testwhat3words alan$ exiftool  -m -s3 -p '$filename $what3words*' test.jpg

test.jpg *
There's no default so it's just printing the asterisk.  Otherwise it would print the default language value followed by the asterisk.  I've tried -* and \* and ${}

Title: Re: This seems a tad illogical
Post by: StarGeek on December 26, 2020, 03:43:46 PM
The asterisk doesn't seem to work with the -p (-printFormat) option (https://exiftool.org/exiftool_pod.html#p-FMTFILE-or-STR--printFormat).  Which seems reasonable, as it's purpose is to print the output in a specific format and listing an unknown amount of tags would just about upset any format.  Take GPS* for example.  You could have a couple dozen GPS tags in EXIF, GPS, and Composite.