dataverse icon indicating copy to clipboard operation
dataverse copied to clipboard

Thumbnail display issues with .nii (NifTI) files

Open kaitlinnewson opened this issue 4 years ago • 1 comments

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

Screen Shot 2020-07-14 at 10 22 07 AM

https://dataverse.scholarsportal.info/dataset.xhtml?persistentId=doi:10.5683/SP2/BRB00Z

Screen Shot 2020-07-14 at 10 23 11 AM

Dataset Title Example (from Harvard demo site):

Screen Shot 2020-07-14 at 10 25 08 AM

Screen Shot 2020-07-14 at 10 25 17 AM

kaitlinnewson avatar Jul 14 '20 14:07 kaitlinnewson

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

djbrooke avatar Jul 14 '20 21:07 djbrooke

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:

Screenshot 2023-12-04 at 3 07 52 PM

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.

pdurbin avatar Dec 04 '23 20:12 pdurbin