Stayframe HEIC decoder — unmodified libheif-js 1.23.5 ================================================================ These four files are copied byte-for-byte from the npm package "libheif-js" version 1.23.5 (the libheif-wasm build). Stayframe does not patch them. libheif-bundle.mjs the file the converter loads libheif.js Emscripten glue, separate from the app bundle libheif.wasm WebAssembly binary LICENSE GNU LGPL-3.0 text shipped with that build SHA-256 libheif-bundle.mjs 095194187be00d3e36335b8ad7f5552d70655e5e2159486d7d36cd4daa47bba9 libheif.js 376c0bb483c23ac458cd22d718074693748ea75eddc3e4929353d4153e365a2e libheif.wasm 184d3d20f8323877f13e9f5254f9c6a0ce272c9a3a2f823b0b2bcd2ee9f73f80 LICENSE fa81ce652315b013359d6e8e4744335f31a50c7c192907176d3632f78a3b4596 What is inside the wasm binary libheif 1.23.5 https://github.com/strukturag/libheif LGPL-3.0 libde265 1.0.15 https://github.com/strukturag/libde265 LGPL-3.0 The version strings above are the ones embedded in libheif.wasm from libheif-js 1.23.5. Wrapper source https://github.com/catdad-experiments/libheif-js npm: https://www.npmjs.com/package/libheif-js/v/1.23.5 How Stayframe uses it A Web Worker fetches /vendor/libheif/libheif-bundle.mjs at runtime, only after you add a HEIC or HEIF file. The module is not merged into the application JavaScript. Photos are decoded in the worker and are not uploaded. How to replace it Substitute libheif-bundle.mjs with your own build that default-exports a factory function. Calling that function must return an object with a HeifDecoder constructor whose instances provide: decode(Uint8Array) -> images image.get_width(), image.get_height() image.display(ImageData, callback) image.free() You can rebuild from the unmodified libheif.js and libheif.wasm in this folder. Replacing those files does not require rebuilding Stayframe. Copyright license libheif, libde265, and the libheif-js wrapper are LGPL-3.0. LGPL-3.0 allows commercial use. It does not allow you to strip this notice or to prevent a user from swapping the library for their own build. The rest of Stayframe is MIT; the MIT license does not apply to this folder. Patents LGPL-3.0 is a copyright license. It does not grant rights under third-party HEVC/H.265 patents. Read the README section "HEVC patents" before launching. This file is not legal advice.