MAGODUCK V49 local HEIC decoder Libraries: libheif1.23.7 (source commit12a259a5882dd99d45ec5fc77e296a3b620d1e2e) and libde2651.1.3. Both libraries are LGPL-3.0; see their COPYING files and GPL-3.0.txt. Preserve notices when redistributing. The decoder was rebuilt from those sources with Emscripten3.1.61 and CMake/Ninja. It does not use the npm prebuilt bundle whose recipe defaulted to libde2651.0.15. The patched dependency choice follows upstream security advisories, including GHSA-wqrf-6rf5-v78r (patched >=1.0.17). No claim of complete vulnerability absence is made. Runtime library versions are read from the compiled C APIs in the worker. The adapter is assets/js/heic-decoder-worker-v24.js and assets/js/heic-to-jpg.js. All selected image bytes remain in the local worker/tab; normal site assets load from the host. Complete corresponding library sources are in ./source/libheif-1.23.7-source.tar.gz and ./source/libde265-1.1.3-source.tar.gz. Download build-wasm.py.txt, rename locally to build-wasm.py, install/activate Emscripten3.1.61 and CMake/Ninja, set EMSDK, and run: python3 build-wasm.py --libheif-source /path/to/unpacked/libheif --libde265-source /path/to/unpacked/libde265 --output /path/to/build Build flags: HEIC decoding only, static linking, no plugin loading or threads, no SIMD dependency, SINGLE_FILE wasm, no dynamic JS execution, 512MiB maximum wasm memory,5MiB stack. Per-file20MiB, decoded20MP/12000px and40-second adapter guards also apply. The library bundle is separate and may be rebuilt/replaced. Modification and reverse engineering for debugging changes to the libraries are not restricted. Software is WITHOUT WARRANTY. Keep originals; synthetic tests do not verify all iPhones, cameras, HDR, profiles or EXIF orientation. Upstream: https://github.com/strukturag/libheif https://github.com/strukturag/libde265/releases/tag/v1.1.3 https://github.com/strukturag/libde265/security/advisories/GHSA-wqrf-6rf5-v78r libheif security advisories addressed by the 1.23.7 rebuild https://github.com/strukturag/libheif/security/advisories/GHSA-2g6j-vhr6-6wrj https://github.com/strukturag/libheif/security/advisories/GHSA-48p4-gj45-w9v6