HEIC decoder provenance, source and replacement instructions Distributed runtime: unmodified libheif-wasm/libheif-bundle.mjs from https://registry.npmjs.org/libheif-js/-/libheif-js-1.23.2.tgz The npm tarball integrity was checked against its SHA-512 registry integrity. See manifest.json for SHA-256 of every supplied library/source asset. Corresponding source (served alongside the runtime): source/libheif-ac1cb05.tar.gz https://github.com/strukturag/libheif commit ac1cb05c39008f01525c991ff8b88f84ddf70fd2 source/libde265-1.0.15.tar.gz https://github.com/strukturag/libde265/tree/v1.0.15 source/libde265-1.0.15-release.tar.gz Original release tarball used by build-emscripten.sh, including configure. https://github.com/strukturag/libde265/releases/download/v1.0.15/libde265-1.0.15.tar.gz source/libheif-emscripten-1.23.2.tar.gz https://github.com/catdad-experiments/libheif-emscripten/tree/v1.23.2 source/libheif-js-6ca00b8.tar.gz https://github.com/catdad-experiments/libheif-js commit 6ca00b818c0ff51cb2a5c75b9ce97d708083335a Rebuild recipe: 1. Use Ubuntu 22.04, Emscripten SDK 3.1.61, Node.js 24 and TypeScript 5, matching the supplied libheif-emscripten .github/workflows/emscripten.yml. Install standard CMake, make, autoconf, automake, libtool, pkg-config tools. 2. Unpack the build repository; unpack libheif into its libheif/ subdirectory (the archive supplies the exact submodule source omitted from GitHub's build-repository archive). Inspect the original workflow and scripts. 3. Run the original libheif/scripts/install-ci-linux.sh and prepare-ci.sh, then follow the WASM workflow: create run-ci-wasm.sh by replacing USE_WASM=0 with USE_WASM=1 USE_UNSAFE_EVAL=0 and USE_TYPESCRIPT=0 with USE_TYPESCRIPT=1 in scripts/run-ci.sh; run it. build-emscripten.sh uses libde265 1.0.15 by default. AOM, WebCodecs, OpenJPEG and uncompressed codecs are disabled. No x265 encoder is included in this WASM decoder. The build script may fetch the upstream libde265 release archive; the exact release tarball and pinned tag source are also supplied here. For offline libde265, copy source/libde265-1.0.15-release.tar.gz into the build directory as libde265-1.0.15.tar.gz before running the build. To use the supplied tag archive, run its autogen.sh to create configure before the configure step in build-emscripten.sh. 4. Run dist-prep.sh wasm in the build repository. Arrange dist/ as libheif-wasm/ and package it in libheif.tar.gz, as the release workflow does. 5. Unpack the supplied libheif-js source. Run npm install --ignore-scripts to install its build-time dependencies. Then run: node scripts/install.js /absolute/path/to/libheif.tar.gz Its unmodified scripts/install.js supplies the esbuild bundling settings and embedded-WASM packaging; use the resulting libheif-wasm/libheif-bundle.mjs. Build tools are not web runtime dependencies. Replacement/debugging: The LGPL runtime is an independent ES module whose default export is a factory returning the libheif Module. Glimbench uses HeifDecoder, image.is_primary(), image.get_width/get_height, image.display/free and heif_context_free. Replace site/vendor/heic/libheif-bundle.mjs with your compatible build, retaining required notices. Run `node scripts/dev-server.mjs 8801` from the project root and visit http://localhost:8801/heic-to-jpg/. Source edits are not integrity-locked. Full browser application modules can be read directly under /js/heic/. This recipe documents the upstream build; Glimbench currently distributes the verified upstream binary, not a locally rebuilt or bit-for-bit reproducibility- verified build. Do not claim this recipe was run unless separately validated.