silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
183 stars 18 forks source link

Support Blosc2 and Bitshuffle plugins #1524

Closed axelboc closed 7 months ago

axelboc commented 10 months ago

With hwasm@0.6.10, the Blosc2 plugin now works as expected! :tada:

Initial PR description Opening as draft because Blosc2 is not working as expected. The `blosc2` dataset of the test file `filters.h5` is not correctly decompressed. You can try it locally: http://localhost:5173/h5wasm?url=https%3A%2F%2Fwww.silx.org%2Fpub%2Fh5web%2Ffilters.h5 ![image](https://github.com/silx-kit/h5web/assets/2936402/d70c7d38-d7a5-4336-aeaf-7e23d9dd7c69) --- What's more, there's definitely something weird going on — it seems that plugins have an impact of the decompression of datasets compressed with other plugins. For instance: 1. Open `filters.h5` 2. Select `lz4` dataset => looks correctly decompressed 3. Select `blosc2` then `lz4` again => still works 4. Reload 5. Select `blosc2` first, then `lz4` => no longer works ![image](https://github.com/silx-kit/h5web/assets/2936402/d4b500bd-d867-4b3e-b9f4-bd1647c6204f) Other example: if you select `zstd` first and then `blosc2`, it looks different than before: ![image](https://github.com/silx-kit/h5web/assets/2936402/3a6aa634-cf49-4a42-9451-440f0bd575a1)