This seems a tad illogical

Started by Alan Clifford, December 26, 2020, 02:17:49 PM

Previous topic - Next topic

Alan Clifford

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.

Alan Clifford

Found the documentation.


x-default needed.  All better now!

Alan Clifford

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 ${}


StarGeek

The asterisk doesn't seem to work with the -p (-printFormat) option.  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. 
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).