I am currently using qgis2web to set up a WebGIS project for which I would like to avoid a WebGIS server. I cannot find a way to convert my raster data in a way that it keeps its information (1 band 32 bit float). If I use the qgis2Web export function, it gets converted into a .png without the original values. I tried to search a file format that is supported by Openlayers or Leaflet that would retain the original values but could only find the option to use WMS.
The underlying issue is that webmaps are webpages, and webpages have more limited support for rasters, focused almost completely on visual appearance, not underlying data. That's why qgis2web converts rasters to PNGs. If it didn't, there is no guarantee that the rasters would display. Sorry not to have a solution.