-
Notifications
You must be signed in to change notification settings - Fork 495
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
Ingest: Add geotiff support #2740
Comments
Hi, would like to ask if there are any updates on this issue? geotiff file thumbnails are broken. This issue only applies to some geotiff but not all (see https://researchdata.ntu.edu.sg/dataverse/ASE?q=tiff&types=dataverses%3Adatasets%3Afiles&sort=score&order=desc&page=1). A colleague replicated it on the demo.dataverse.org instance. Dataset uploaded on: https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/TV3OWZ The thumbnail is 0 bytes according to Jim Myers on https://groups.google.com/g/dataverse-community/c/K9eUCw8erKc. Both files are geotiff, verified with gdal (base) D:_dev\dataverse>gdalinfo data-issue-20210830/middle_lower_Amazon_bathymetry_v2.tiff (base) D:_dev\dataverse>gdalinfo data-issue-20210830/Table2_Sediment.tif |
There are a lot of things that could be done. At a minimum, Dataverse shouldn't send 0 byte thumbnails and should use the default icon instead. More usefully, I found that ImageMagick and GraphMagick (#8014), with the latter producing a clearer thumb in my quick test, can create a png thumb from these files, so using it instead of the jai-imageio library in these cases (when jai has an error/produces 0 bytes) could help. (FWIW: I also tried updating to the latest jai version - that didn't help). |
Hi, got the same problem on our dataverse.nl instance (v5.6), where a recently published dataset with geoTiff files destroys the layout of the root verse (home) page which is annoying. When uploading one of this geoTiff files on a 5.10.1 version it seems to be fixed, but I can't find any info about that. Anyways, the only thing that helped was overwriting the tumbs with another image. Only did that for the datasets (thumb48) which need a 48x48 PNG image which I took from a screendump. After upgrading to 5.10.1 is there a way to force regeneration of the thumbs via an API, or should I just remove them on disk @pdurbin ? |
@PaulBoon a few things... There are some APIs for managing thumbnails but they aren't documented. Please feel free to create an issue about this! For now, please see https://groups.google.com/g/dataverse-community/c/goFs0D61es4/m/B4pLV-_lAwAJ There are a few related issues you might be interested in:
With regard to removing the thumbnails on disk, if it works, please go for it! Thumbnails are regenerated when they don't exist. You can even generate thumbnails of arbitrary size. See |
grooming:
|
2024/08/26: @pdurbin could you please look at this issue and let us know if it should be closed or we should keep it open to help support other geospatial needs (e.g., CAFE). |
@cmbz I'll close it. Folks in the community, please feel free to open a fresh geotiff issue if you like. And please link to it from here so it can be found! Thanks. ❤️ |
For GeoTIFF files added to Dataverse:
The text was updated successfully, but these errors were encountered: