Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail display issues with .nii (NifTI) files #7080

Closed
kaitlinnewson opened this issue Jul 14, 2020 · 2 comments
Closed

Thumbnail display issues with .nii (NifTI) files #7080

kaitlinnewson opened this issue Jul 14, 2020 · 2 comments
Labels
Component: JSF Involves modifying JSF (Jakarta Server Faces) code, which is being replaced with React. Feature: File Upload & Handling Type: Bug a defect User Role: Guest Anyone using the system, even without an account

Comments

@kaitlinnewson
Copy link
Contributor

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

@djbrooke
Copy link
Contributor

Thanks @kaitlinnewson for the report. This wasn't a format that I was familiar with.

@pdurbin pdurbin added Feature: File Upload & Handling Type: Bug a defect User Role: Guest Anyone using the system, even without an account Component: JSF Involves modifying JSF (Jakarta Server Faces) code, which is being replaced with React. labels Oct 16, 2022
@pdurbin
Copy link
Member

pdurbin commented Dec 4, 2023

I just tested this on https://demo.dataverse.org running 6.0 and a branch running this pull request:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: JSF Involves modifying JSF (Jakarta Server Faces) code, which is being replaced with React. Feature: File Upload & Handling Type: Bug a defect User Role: Guest Anyone using the system, even without an account
Projects
None yet
Development

No branches or pull requests

3 participants