getting data out of unknown tags

Started by grubin698, March 20, 2025, 09:02:54 AM

Previous topic - Next topic

grubin698

Good morning,
I have a tif containing a radiographic (x-ray) image with associated metadata that was created by the x-ray capture software.
Using the Python exifread library, I can see that there is a tag called 0xFE68 that contains what looks to be a JSON-formatted string.
Screenshot 2025-03-20 085342.png
Screenshot 2025-03-20 085443.png
I'd like to replace the exifread library with exiftool, but I'm having trouble getting the full JSON-formatted string out of exiftool. 
I've tried various versions of stuff I've found about getting at unknown tag data, but have yet to get the full string.
exiftool -u -exif_0xfe68  "radiograph.tif" > "H:\DATA\Laptop Xrays\xfe68.json" yields Exif 0xfe68                     : {"IsFavorite":false,"BackupFile":"","Setup":{"Type":"XT[...]
I've also tried -u -ee -exif_0xfe68-u -ee3 -exif_0xfe68and even -U -G3:1 -api requestall=3 -api largefilesupport -exif_0xfe68 but have yet to stumble upon the magic combination of switches that will give me the whole string. 

Phil Harvey

Your first try was very close.  All you needed to do was set the LimitLongValues option:  -api limitlongvalues=0

Also, you should add -s3 if you want to redirect the output to a JSON-format file.

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


StarGeek

Quote from: Phil Harvey on March 20, 2025, 09:33:39 AMYour first try was very close.  All you needed to do was set the LimitLongValues option:  -api limitlongvalues=0

Also, you should add -s3 if you want to redirect the output to a JSON-format file.

Would the -b (-binary) option also have worked? Without need of the -api option?
"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

Phil Harvey

Quote from: StarGeek on March 20, 2025, 10:47:08 AMWould the -b (-binary) option also have worked? Without need of the -api option?

Good point.  That would have been simpler. :)  ... TIMTOWTDI

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