libheif for Family Replay — notice ================================== What this is ------------ libheif.js and libheif.wasm in this folder are libheif 1.23.5 (https://github.com/strukturag/libheif) with the libde265 1.0.15 HEVC decoder (https://github.com/strukturag/libde265), compiled to WebAssembly with Emscripten 3.1.61 — the "libheif-wasm" files of the npm package libheif-js 1.23.5 (https://github.com/catdad-experiments/libheif-js), copied here UNMODIFIED. Family Replay uses them to open iPhone (HEIC/HEIF) photos in browsers that can't open them by themselves (Chrome, Edge and Firefox), on the person's own device, for a month's recap. Licence ------- libheif and libde265 are distributed under the GNU Lesser General Public License, version 3 (LGPL-3.0). The full text — with the GNU General Public License version 3 it builds on — is in LICENSE, in this folder. How Family Replay uses the library ---------------------------------- Family Replay's own code is not based on libheif. These two files are a separate library, loaded at run time, by a Web Worker (/js/heic-worker.js), only when a HEIC photo needs decoding and the browser can't do it itself. It talks to the library only through the library's own published interface (HeifDecoder → get_width / get_height / display). Nothing is linked into Family Replay's code. To use a modified version of the library, put your own build of libheif.js and libheif.wasm (from the libheif sources, built the same way) in place of these two files — Family Replay's pages load them from /vendor/libheif/ by name and will use yours. Source code ----------- The Corresponding Source for the files here is kept beside them, in corresponding-src/: libheif-1.23.5.tar.gz libheif's release source (includes build-emscripten.sh, the build script, and post.js, the JavaScript interface) libde265-1.0.15.tar.gz libde265's release source (build-emscripten.sh fetches exactly this release) libheif-emscripten-workflow.yml, libheif-emscripten-dist-prep.sh how the release build was run (Emscripten 3.1.61, USE_WASM=1 USE_UNSAFE_EVAL=0) — https://github.com/catdad-experiments/libheif-emscripten (tag v1.23.5) libheif-js-install.js how libheif-js 1.23.5 packaged that build (its .js transformed to ES2019 by esbuild) The same are available from their projects' own pages (above). For a copy on other media, or any question about this, write to admin@familyreplay.com.