geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
410 stars 487 forks source link

Homepage contains blurry thumbnails #8254

Open jjohnston-aims opened 1 month ago

jjohnston-aims commented 1 month ago

Describe the bug In the sample of records at the bottom of the homepage, each record has a thumbnail which is blurry. Inspecting the image I see .jpg?size=320 in the url, however the layout shows the dimensions of the div to be 438px wide.

There is a similar blurry image issue in the homepage gallery div, but we have implemented a workaround by turning this off.

To Reproduce

Problem also occurs when images are added via Associated resource.

Expected behavior Images should not be blurry, particularly when larger images are available.

Screenshots GN4_blurry

Desktop (please complete the following information):

fxprunayre commented 1 month ago

We probably need to add a parameter for this small image stored in the index. To be done around https://github.com/geonetwork/core-geonetwork/blob/main/core/src/main/java/org/fao/geonet/kernel/search/index/OverviewIndexFieldUpdater.java#L42

For the mosaic, you can turn it off in UI setting in the admin console (see https://github.com/geonetwork/core-geonetwork/blob/main/web-ui/src/main/resources/catalog/js/CatController.js#L139).