It appears that LZ4 support in N5 differs from Zarr. Have not had a chance to dive deeply into it, but here is the gist.
N5 is using the lz4-java library here to compress chunks. This lz4-java library provides its own custom blocked format.
Zarr's Numcodecs library uses LZ4_compress_fast, which comes from the lz4 C library.
Encountered this issue with N5Store in PR ( zarr-developers/zarr-python#309 ). So disabled LZ4 support in N5Store for now. Not entirely sure how to bridge the gap between these two, but figured I'd raise this here for awareness and discussion.
It appears that LZ4 support in N5 differs from Zarr. Have not had a chance to dive deeply into it, but here is the gist.
N5 is using the lz4-java library here to compress chunks. This lz4-java library provides its own custom blocked format.
Zarr's Numcodecs library uses
LZ4_compress_fast, which comes from the lz4 C library.Encountered this issue with
N5Storein PR ( zarr-developers/zarr-python#309 ). So disabled LZ4 support inN5Storefor now. Not entirely sure how to bridge the gap between these two, but figured I'd raise this here for awareness and discussion.