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

Feature Request/Idea: Thumbnails should be created for more (and even custom) datatypes #8194

Open
sergejzr opened this issue Oct 28, 2021 · 2 comments

Comments

@sergejzr
Copy link

sergejzr commented Oct 28, 2021

Dear Dataverse community,
Thumbnails should be created for more (and even custom) datatypes
Overview of the Feature Request

What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)
Curator, Depositor, Guest, Searcher

What inspired the request?
We noticed that the thumbnails are only generated for images and PDFs.
The source of edu.harvard.iq.dataverse.dataaccess.ImageThumbConverter clearly says that thumbnails are only attempted to be generated in case of image or pdf:


            // try to generate, if not available: 
            boolean generated = false;
            if (file.getContentType().substring(0, 6).equalsIgnoreCase("image/")) {
                generated = generateImageThumbnail(storageIO, size);
            } else if (file.getContentType().equalsIgnoreCase("application/pdf")) {
                generated = generatePDFThumbnail(storageIO, size);
            }
....

What existing behavior do you want changed?
Actually, the thumbnail creation in dataverse seems to rely on Imagemagick. Imagemagick can deal with a variety of data formats and even with custom formats. The motivation for limitation of this functionality in dataverse to images and pdfs is not clear. I can imagine having a customizable property where the Sysadmin can tell, which datatypes to send for conversion (and how the conversion command should be built)

Any brand new behavior do you want to add to Dataverse?
This is not a "brand new" functionaliity request, I guess..

Any related open or closed issues to this feature request?
The issue #6450 is related (though it embraces a much larger problem)

PS: Our fresh research data management team at the Bonn University decided to employ Dataverse as the research data repository thus we might be bit more active here in the future and produce such requests more often, thanks!

@djbrooke
Copy link
Contributor

Thanks @sergejzr ! We're certainly interested in creating thumbnails for more file types. In a recent release we enhanced our file-type categorization to at least get more appropriate generic thumbnails, but this would be a bigger improvement.

@jggautier jggautier changed the title Feature Request/Idea: Feature Request/Idea: Thumbnails should be created for more (and even custom) datatypes Oct 30, 2021
@pdurbin
Copy link
Member

pdurbin commented Oct 1, 2022

@sergejzr good idea. Any interest in making a pull request? 😄

By the way, thumbnails from geotiff files were requested here:

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

No branches or pull requests

3 participants