ToolPiyo HEIC fallback decoder — reviewed 2026-11-08 This directory contains an UNMODIFIED, separately loadable ES module from libheif-js 1.23.5. It embeds the corresponding libheif 1.23.5 WebAssembly decoder and libde265 1.0.15. No HEVC encoder is linked into this fallback. The host application dynamically imports the module only after a user-selected HEIC file cannot be decoded natively, has unexpected dimensions, or has an ambiguous nontrivial EXIF orientation. No photo is sent to an external service. Copyright and license texts: COPYING.txt (LGPLv3, GPLv3 and upstream MIT notices), LICENSE-emscripten.txt, LICENSE-compiler-rt.txt, LICENSE-libcxx.txt, LICENSE-libcxxabi.txt, LICENSE-musl.txt and LICENSE-esbuild.txt. libheif/libde265 source notices license them under LGPLv3 or later. libheif-js package.json declares LGPL-3.0. Emscripten runtime is MIT/NCSA; compiler-rt uses Apache-2.0 WITH LLVM-exception. Preserve all original notices. Corresponding source and the build/packaging recipes are provided here, at no additional charge, alongside the runtime (relative to this directory): sources/libheif-js-d8ec4bc.tar.gz sources/libheif-emscripten-v1.23.5.tar.gz sources/libheif-413e2a8.tar.gz sources/libde265-1.0.15.tar.gz The emscripten source archive pins libheif submodule 413e2a87e6a70b3eccc3a3adc5801179dd2d9e00. Build with Emscripten 3.1.61, following that archive's .github/workflows/emscripten.yml and libheif's build-emscripten.sh/scripts/run-ci.sh. The WASM distribution uses libde265 1.0.15; AOM, OpenJPEG, WebCodecs and uncompressed codecs are disabled by default. The libheif-js archive contains scripts/install.js and scripts/bundle.js for packaging the generated files as the supplied standalone ES module. You may replace this separately served libheif-bundle.mjs with a compatible modified build. ToolPiyo does not prohibit modification of the library or reverse engineering for debugging those modifications, as required by LGPLv3 section 4. The application's UI/worker code is not bundled into this library. The application guards the pinned security-structure ABI; compatible rebuilds must retain ABI version 4 and the exported libheif interfaces. Open-source copyright licenses do not grant third-party HEVC patent rights. No claim is made that all jurisdictions or HEIF variants are patent-cleared. No warranty is provided by the upstream projects; see COPYING.txt. Origins: https://github.com/catdad-experiments/libheif-js/tree/d8ec4bc3bc5bf8055975577bccbbc7e1d7313c2d https://github.com/catdad-experiments/libheif-emscripten/tree/v1.23.5 https://github.com/strukturag/libheif/tree/413e2a87e6a70b3eccc3a3adc5801179dd2d9e00 https://github.com/strukturag/libde265/tree/v1.0.15 Exact runtime/source sizes, origins and SHA-256 values are recorded in the repository's data-sources/photo-heif/manifest.json. Ordinary builds validate these files offline; no runtime CDN and no ordinary build-time downloads.