-a -j does not output every occurence

Started by cogito.digital, October 31, 2023, 01:03:08 PM

Previous topic - Next topic

cogito.digital

You will find example file attached and also you have the command I use.
I remove full path in the first output for clarity.


exiftool -ver
12.69

exiftool -a -XMP:ImageinfoImagesFullpath /root/AvecXinet.indd
Imageinfo Images Fullpath      : Macintosh HD:Users:mj:Documents:6-Documents_de_Tests:8xA4 et cie:Rosa.pdf
Imageinfo Images Fullpath      : Macintosh HD:Users:mj:...
Imageinfo Images Fullpath      : Macintosh HD:Users:mj:...
Imageinfo Images Fullpath      : Macintosh HD:Users:mj:...
Imageinfo Images Fullpath      : Macintosh HD:Users:mj:...

/cogito/dist/exif/exiftool -a -j -XMP:ImageinfoImagesFullpath /root/AvecXinet.indd
[{
  "SourceFile": "/root/AvecXinet.indd",
  "ImageinfoImagesFullpath": "Macintosh HD:Users:mj:Documents:6-Documents_de_Tests:8xA4 et cie:Rosa.pdf"
}]

StarGeek

From the docs on the -j (-json) option

      The -a option is implied when -json is used, but entries with identical JSON names are suppressed in the output. (-G4 may be used to ensure that all tags have unique JSON names.)
"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