Licenses
The production install is checked for GPL and AGPL dependencies. LGPL is allowed only as a separate file, which is how libheif is served. The build fails if a dependency is GPL or AGPL with no permissive alternative.
Swap the HEIC decoder
- Build a single-threaded libheif wasm without x264 or x265. SharedArrayBuffer is not required.
- Replace
/wasm/libheif/libheif.wasm. Replacelibheif.jsonly if the glue must match. - Keep the file names. The worker loads them from that path and does not bundle them.
- License texts are in that folder. Upstream source is linked below. Package version: 1.23.5.
Libraries inside the wasm
-
libheif · LGPL-3.0
Shipped unmodified as /wasm/libheif/libheif.wasm and libheif.js from libheif-js. Replace those filenames to swap the build.
https://github.com/strukturag/libheif -
libde265 · LGPL-3.0
HEVC decoder linked inside the libheif wasm. Not a separate download.
https://github.com/strukturag/libde265 -
dav1d · BSD-2-Clause
AV1 decoder linked inside the same wasm. This site’s pages do not convert AVIF yet.
https://code.videolan.org/videolan/dav1d