ToolBeetle HEIC decoder: derived from heic-to 1.6.5, LGPL-3.0. Unmodified libheif-without-unsafe-eval.js is bundled as a separately replaceable worker. Our worker checks decoded dimensions before allocating ImageData. Our UI is separate. Package source: /assets/heic-decoder-source.tar.gz Worker build source: /assets/heic-worker-source.txt Upstream heic-to: https://github.com/hoppergee/heic-to/tree/v1.6.5 libheif 1.23.5: https://github.com/strukturag/libheif/tree/v1.23.5 libde265 1.0.16: https://github.com/strukturag/libde265/tree/v1.0.16 Build: esbuild worker.js --bundle --minify --platform=browser --external:fs --external:path --external:crypto See upstream esbuild.mjs and README for decoder rebuilding instructions. Corresponding decoder sources supplied locally: /assets/libheif-source.tar.gz /assets/libde265-source.tar.gz