dataverse
dataverse copied to clipboard
Thumbnail display issues with .nii (NifTI) files
Hi Dataverse team,
We have noticed a display issue with a dataset that has been uploaded containing NifTI image files (.nii). It appears that the thumbnails do not display properly, causing issues both on the dataset page and any other pages the dataset appears in. This has been tested in 4.19 (Scholars Portal Dataverse) and 4.20 (Harvard's demo dataverse). This also causes issues in the dataset title display.
I have tested this in both Firefox and Chrome on OSX.
Example links and screenshots:
https://demo.dataverse.org/dataset.xhtml?persistentId=doi%3A10.70122%2FFK2%2FBMLY45
https://dataverse.scholarsportal.info/dataset.xhtml?persistentId=doi:10.5683/SP2/BRB00Z
Dataset Title Example (from Harvard demo site):
Thanks @kaitlinnewson for the report. This wasn't a format that I was familiar with.
- https://brainder.org/2012/09/23/the-nifti-file-format/
- https://github.com/FNNDSC/med2image
I just tested this on https://demo.dataverse.org running 6.0 and a branch running this pull request:
- #9669
I used 1.1.Action_language_ALE_p001.nii
from https://borealisdata.ca/file.xhtml?fileId=103419&version=1.2 (from the dataset mentioned above).
It looks fine to me:
Locally (in Docker), I see this:
dev_dataverse> could not read image with ImageIO.read()|#]
...
dev_dataverse> Failed to rescale and/or save the image: Width (0) and height (64) must be non-zero|#]
That is, I can't reproduce this issue so I'm closing it.