With -j (JSON output) is there a way to ask for tags both with and without conv

Started by sebutzu, January 05, 2025, 04:48:40 AM

Previous topic - Next topic

sebutzu

With -j (JSON output) is there a way to ask for tags both with and without print conversions?
I tried -all -all# but it does not return what I would expect (meaning tags with and without print conversions).
Is there a way to do this?
Thanks

StarGeek

Quote from: sebutzu on January 05, 2025, 04:48:40 AMWith -j (JSON output) is there a way to ask for tags both with and without print conversions?
I tried -all -all# but it does not return what I would expect (meaning tags with and without print conversions).

The tag names with and without the number sign would be the same. From the docs on the -j (-json) option
QuoteThe -a option is implied when -json is used, but entries with identical JSON names are suppressed in the output.

The docs go on to mention using the -G4 (-groupNames4) option, but that still doesn't give both values.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

greybeard

I've been through this as well - the only way I've found is to run the json command twice - not ideal.

Phil Harvey

Add the -l option.

            Adding -l adds a "desc" field, and a "num"
            field if the numerical value is different from the converted
            "val", and "fmt" and "hex" fields for EXIF metadata if the API
            SaveFormat and SaveBin options are set respectively, and the
            length of the "hex" output is limited by the API LimitLongValues
            setting.


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