libheif for the LuminaClean free tools ====================================== What this folder holds ---------------------- libheif.js and libheif.wasm are an unmodified WebAssembly build of: * libheif 1.23.5 (commit 413e2a87e6a70b3eccc3a3adc5801179dd2d9e00) Copyright (c) struktur AG and the libheif contributors. Licence: GNU Lesser General Public License, version 3 (LGPL-3.0). Source: https://github.com/strukturag/libheif/releases/tag/v1.23.5 * libde265 1.0.15 (HEVC decoder, statically linked into libheif.wasm) Copyright (c) struktur AG and the libde265 contributors. Licence: LGPL-3.0. Source: https://github.com/strukturag/libde265/releases/tag/v1.0.15 Built by the libheif-emscripten project, release v1.23.5 (Emscripten 3.1.61, built with libheif's own build-emscripten.sh, USE_WASM=1, USE_UNSAFE_EVAL=0): https://github.com/catdad-experiments/libheif-emscripten/releases/tag/v1.23.5 npm's libheif-js 1.23.5 (LGPL-3.0) ships the same libheif.wasm (byte-identical) but a different, minified libheif.js; the libheif.js served here is the one from the release asset, not npm's. SHA-256 of the files as served here (both taken from the libheif-emscripten v1.23.5 release asset libheif.tar.gz): libheif.wasm 184d3d20f8323877f13e9f5254f9c6a0ce272c9a3a2f823b0b2bcd2ee9f73f80 libheif.js 55983f07e1799a95c4945a3d2bfb5d22d3fff7d40cbd218ee91104593e329df0 Source code, mirrored on this site ---------------------------------- Copies of the exact source releases, so they stay available as long as the decoder is served: /tools/vendor/src/libheif-1.23.5.tar.gz sha256 fd9036064c4432f0550d15072ddf34956a248279ee9aeaff0fba3fa0f77d8f1a (matches the digest GitHub publishes for the v1.23.5 release asset) /tools/vendor/src/libde265-1.0.15.tar.gz sha256 00251986c29d34d3af7117ed05874950c875dd9292d016be29d3b3762666511d (matches the checksum Homebrew recorded for this release) /tools/vendor/src/libheif-emscripten-1.23.5-src.tar.gz sha256 8e3395ca983e369448bea84d223c35f1117373953e00219588415f1bc37c86ea (GitHub source archive of the build repository: the workflow and dist-prep.sh; libheif's own build-emscripten.sh and scripts/run-ci.sh are inside the libheif tarball) Licence texts ------------- LICENSE-libheif.txt libheif's own licence file (LGPL-3.0, plus MIT for its sample apps) LGPL-3.0.txt GNU Lesser General Public License, version 3 GPL-3.0.txt GNU General Public License, version 3 (the LGPL builds on it) How the tools use it -------------------- The HEIC to JPG converter and the photo metadata remover at https://luminaclean.app/tools/ load these two files in a Web Worker (/tools/assets/heic-worker.js), only when a HEIC photo is chosen in a browser that cannot open HEIC by itself. They call libheif through its published JavaScript interface (HeifDecoder, HeifImage) and do not change it. Using your own build of the library ----------------------------------- The tools' own code is shipped as readable, unminified JavaScript in /tools/assets/ and /tools/*.html. You may copy and change those files to run them with a modified version of libheif or libde265: build your libheif.js and libheif.wasm, put them in this folder of your copy, and serve it. heic-worker.js loads ../vendor/libheif-1.23.5/libheif.js and finds libheif.wasm next to it. Questions about these notices: nextstep.appstudio@gmail.com