libheif 1.23.5 (with libde265 1.0.15), served unmodified by PhiChess. It opens HEIC photos in browsers that cannot do so themselves, on the visitor's own device. The library in this folder, byte for byte as published on npm: libheif-bundle.js libheif and libde265 compiled to WebAssembly, with the JavaScript around it (the file libheif-wasm/libheif-bundle.js of the package below) LICENSE.txt the licence text (libheif's COPYING file: GNU Lesser General Public License, version 3, and the GNU General Public License, version 3, which it builds on) libde265-COPYING.txt libde265's own licence file (the same LGPL v3), from its release archive libde265-AUTHORS.txt the libde265 authors, from its release archive libheif-js-LICENSE.txt the licence file of the npm package (LGPL v3) Package: "libheif-js" 1.23.5 on npm (https://www.npmjs.com/package/libheif-js/v/1.23.5) Made of: libheif 1.23.5 https://github.com/strukturag/libheif/tree/v1.23.5 Copyright (c) 2017-2020 Struktur AG, Copyright (c) 2017-2026 Dirk Farin libde265 1.0.15 https://github.com/strukturag/libde265/tree/v1.0.15 (the HEVC decoder) Copyright (c) 2013-2014 Struktur AG, Copyright (c) 2013-2023 Dirk Farin Licence: both libraries are under the GNU Lesser General Public License, version 3 (LICENSE.txt). How it was built: libheif's own script build-emscripten.sh (in its source) with emscripten 3.1.61, USE_WASM=1 and USE_UNSAFE_EVAL=0, by the workflow in the libheif-emscripten repository; the libheif-js package then put the WebAssembly file and its JavaScript into one file with esbuild (scripts/install.js and scripts/bundle.js in its source). PhiChess has not changed the library. Our own code only calls its public interface, from its own files, and loads it at run time from this folder. The one file of ours that calls the library is the worker, ../heic-worker-v1.js (https://www.phichess.com/heic/heic-worker-v1.js): it is served as plain, readable source, and you may read, change and debug it together with a changed library (it is the application code that the LGPL, section 4(d)(0), asks us to make available). To use a changed version of the library, serve your own libheif-bundle.js in its place: the worker needs only `libheif()`, `HeifDecoder.decode()` and the image methods `is_primary()`, `get_width()`, `get_height()` and `display()`. The build's own settings (build-emscripten.sh in the libheif archive): libde265 1.0.15 is the only codec compiled in (ENABLE_AOM, ENABLE_OPENJPEG, ENABLE_UNCOMPRESSED and ENABLE_WEBCODECS are 0). The JavaScript around the WebAssembly comes from emscripten's runtime (MIT / University of Illinois licences) and its C library, musl (MIT). A copy of the source is kept here, next to the library: libheif-1.23.5.tar.gz the release archive of libheif 1.23.5 (with build-emscripten.sh) libde265-1.0.15.tar.gz the release archive of libde265 1.0.15 libheif-emscripten-1.23.5.tar.gz GitHub's archive of catdad-experiments/libheif-emscripten, tag v1.23.5 (the build workflow) libheif-js-1.23.5-source.tar.gz GitHub's archive of catdad-experiments/libheif-js, tag 1.23.5 (the bundling scripts) If you cannot download them, write to support@phichess.com and we will send them to you.