Campion web app: third-party software notices ============================================== HEIC photo decoder (used only on the page where families hand in forms, and only when the browser cannot read an iPhone HEIC photo itself) --------------------------------------------------------------------- This web app uses the libraries below, unmodified, compiled to WebAssembly. They are two separate files, served unchanged and loaded only when needed, in a Web Worker of their own. They are not compiled into the app's code: /heic-decoder/wasm_heif.wasm SHA-256 7c0cb48271e452a09c6b7aac34e01cdc1937ab57a13e9d9af0b8d664e80bd000 /heic-decoder/wasm_heif.js SHA-256 ffcd8a604cc146e5d08046f5a732fe51791d510007b6a12638ca044b418f1545 /heic-decoder/worker.js is Campion's own small script that starts them in the Worker and turns their pixels into an image. It is not part of the libraries. Before decoding, it may change one thing in its own copy of the photo's bytes, never in the libraries: when the photo's "ftyp" box names "mif1" as its major brand and lists "heic" (or "heix") among its compatible brands, the major brand is set to that brand. (libheif 1.11.0's file check answers only "maybe" for a "mif1" major brand, and the wrapper refuses anything but "yes".) Every other photo is passed on as it came. * libheif 1.11.0 Copyright (c) struktur AG and contributors. Licence: GNU Lesser General Public License, version 3 (LGPL-3.0). Source: https://github.com/strukturag/libheif/tree/v1.11.0 Licence texts (LGPL-3.0, and GPL-3.0 which it incorporates): /licenses/libheif-1.11.0-COPYING.txt * libde265 1.0.8 Copyright (c) struktur AG and contributors. Licence: GNU Lesser General Public License, version 3 (LGPL-3.0). Source: https://github.com/strukturag/libde265/tree/v1.0.8 Licence texts (LGPL-3.0, and GPL-3.0 which it incorporates): /licenses/libde265-1.0.8-COPYING.txt * @saschazar/wasm-heif 2.0.0 (the WebAssembly build of the two libraries above and its loader) Copyright (c) 2020 Sascha Zarhuber. Licence: MIT. /licenses/wasm-heif-2.0.0-LICENSE.txt Package: https://www.npmjs.com/package/@saschazar/wasm-heif/v/2.0.0 (sha512-IWHBA3U7WtUAyvxqKb5+v6prn91HlTB/yrciiTJpnMCZFHtQ9MWIgidaNO4rb7qB6niaEyLz6IdBrnxEQ4tnPQ==) Build source: https://github.com/saschazar21/webassembly/tree/eeaf7b116faa5724d921e46a94cd74b7cd088e41 Corresponding source, with how it was built: /licenses/source/BUILD-NOTES.txt /licenses/source/libheif-1.11.0.tar.gz /licenses/source/libde265-1.0.8.tar.gz /licenses/source/wasm-heif-2.0.0-build-eeaf7b1.tar.gz You may replace the decoder with a modified build of libheif or libde265: the app's Worker fetches /heic-decoder/wasm_heif.wasm and /heic-decoder/wasm_heif.js as separate files at run time and uses whatever those files contain (for example by overriding them in your browser, or by rebuilding the app with a different copy of those two files). A replacement needs the same interface: a loader defining the global `wasm_heif` whose module has decode(bytes, length, alpha) and dimensions(), as in the wrapper's main.cpp.