Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add debug option to not remove raw XML attribute (or create a new property and always store it) #201

Open
agoode opened this Issue Apr 4, 2017 · 3 comments

Comments

Projects
None yet
2 participants
Owner

agoode commented Apr 4, 2017

In Philips (and potentially others), the TIFF description contains an XML file with properties embedded. Currently, OpenSlide parses and discards the XML, but it would be handy to keep around, either with a debug option or a new property.

agoode added the enhancement label Apr 4, 2017

Owner

bgilbert commented Apr 4, 2017

For debugging purposes, it would be convenient to extract the XML even if the slide is rejected by all drivers, and even if the slide is not a valid TIFF (so tiffdump may not work, e.g. NDPI > 4 GB). That leaves either creating a new command-line tool that shares code with tifflike, or adding an OPENSLIDE_DEBUG flag that causes tifflike to dump out all of the ImageDescriptions and XMLPackets.

Did you have a non-debugging purpose in mind?

Owner

agoode commented Apr 4, 2017

I was only thinking of debugging.

For the Philips case, I needed to get the whole XML (and tiffdump refused to not truncate it). I added the XML data into philips.XML (in a local copy of the code), which worked well.

Owner

bgilbert commented Apr 4, 2017

Okay. FYI, I believe tiffinfo doesn't truncate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment