Kitware / UPennContrast

UPenn ?
https://upenn-contrast.netlify.com/
Apache License 2.0
8 stars 6 forks source link

Bit depth incorrect for snapshot download of raw images #688

Open arjunrajlab opened 3 months ago

arjunrajlab commented 3 months ago

If you do download "Raw channels" and "All channels", it downloads 8 bit TIFFs instead of 16 bit (original bit depth).

image
bruyeret commented 3 months ago

I tested it and it looks like it is using the parameter tiffCompression: raw and encoding: TIFF on the /api/v1/item/{itemId}/tiles/region endpoint so I don't know what went wrong It probably has something to do with girder, can you reproduce @manthey ?

arjunrajlab commented 3 months ago

Interesting! Just to completely specify, what I am hoping to get is a TIFF with the actual raw values from the original data. In this case, the data is 16 bit, so would hope to get a 16 bit TIFF.