# HDF5Plugins.jl: lz4, zstd, and bzip2 support for HDF5.jl

**URL:** <https://discourse.julialang.org/t/hdf5plugins-jl-lz4-zstd-and-bzip2-support-for-hdf5-jl/70783>\
**Category:** Package Announcements\
**Tags:** hdf5, zstd, lz4, bzip2\
**Created:** [November 2, 2021, 7:12am UTC](https://discourse.julialang.org/t/hdf5plugins-jl-lz4-zstd-and-bzip2-support-for-hdf5-jl/70783 "2021-11-02T07:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [November 2, 2021, 7:12am UTC](https://discourse.julialang.org/t/hdf5plugins-jl-lz4-zstd-and-bzip2-support-for-hdf5-jl/70783/1 "2021-11-02T07:12:26Z")

</div>

I am happy to announce the release of [HDF5Plugins.jl](https://github.com/JuliaIO/HDF5Plugins.jl) which adds lz4, zstd, and bzip2 filter support to HDF5.jl. These are implemented by porting the original C code of the plugin glue code to Julia. The plugins register themselves with the HDF5 library upon `using HDF5Plugins`.

> **[GitHub - JuliaIO/HDF5Plugins.jl: Compression plugins for HDF5.jl implemented...](https://github.com/JuliaIO/HDF5Plugins.jl)**
>
> Compression plugins for HDF5.jl implemented in Julia - GitHub - JuliaIO/HDF5Plugins.jl: Compression plugins for HDF5.jl implemented in Julia

An alternative to this is to install [compiled shared libraries](https://www.hdfgroup.org/downloads/hdf5/) of the [HDF5 plugins implemented in C](https://github.com/HDFGroup/hdf5_plugins), but this will likely require overriding HDF5\_jll depending on your platform due to binary compatibility needs. In contrast, HDF5Plugins.jl is implemented in Julia and thus sidesteps the binary compatibility issues.

I’m in the process of merging this code into the master branch of HDF5.jl. It will likely appear in a 0.16.x release of HDF5.jl at the earliest if merged.

> <https://github.com/JuliaIO/HDF5.jl/pull/875>
>
> This adds bzip2, lz4, and zstd filters from HDF5Plugins.jl
> 
> \<strike\>To Do: Add… tests\</strike\>
> 
> Closes #874

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [November 2, 2021, 7:14am UTC](https://discourse.julialang.org/t/hdf5plugins-jl-lz4-zstd-and-bzip2-support-for-hdf5-jl/70783/2 "2021-11-02T07:14:29Z")

</div>

The package is in the process of being registered in the General Registry:  
[https://github.com/JuliaRegistries/General/pull/47933](https://github.com/JuliaRegistries/General/pull/47933)
