# Third-party notices

anyjpg's project-owned material is proprietary. The components below are not
relicensed under the anyjpg proprietary license; their upstream terms continue
to apply. Version and source-archive URLs are taken from the locked build inputs.

## Browser runtime packages

| Component            |      Version | Declared license     | Exact package source                                                                          |
| -------------------- | -----------: | -------------------- | --------------------------------------------------------------------------------------------- |
| @jsquash/avif        |        2.1.1 | Apache-2.0           | [npm archive](https://registry.npmjs.org/@jsquash/avif/-/avif-2.1.1.tgz)                      |
| @petamoriken/float16 |        3.9.3 | MIT                  | [npm archive](https://registry.npmjs.org/@petamoriken/float16/-/float16-3.9.3.tgz)            |
| @resvg/resvg-wasm    |        2.6.2 | MPL-2.0              | [npm archive](https://registry.npmjs.org/@resvg/resvg-wasm/-/resvg-wasm-2.6.2.tgz)            |
| @xmldom/xmldom       |       0.9.12 | MIT                  | [npm archive](https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz)                  |
| ExifReader           |       4.44.0 | MPL-2.0              | [npm archive](https://registry.npmjs.org/exifreader/-/exifreader-4.44.0.tgz)                  |
| GeoTIFF.js           |        3.0.5 | MIT                  | [npm archive](https://registry.npmjs.org/geotiff/-/geotiff-3.0.5.tgz)                         |
| Lerc                 |        3.0.0 | Apache-2.0           | [npm archive](https://registry.npmjs.org/lerc/-/lerc-3.0.0.tgz)                               |
| libheif-js           |       1.19.8 | LGPL-3.0             | [npm archive](https://registry.npmjs.org/libheif-js/-/libheif-js-1.19.8.tgz)                  |
| pako                 |        2.2.0 | MIT AND Zlib         | [npm archive](https://registry.npmjs.org/pako/-/pako-2.2.0.tgz)                               |
| pako                 |       1.0.11 | MIT AND Zlib         | [npm archive](https://registry.npmjs.org/pako/-/pako-1.0.11.tgz)                              |
| parse-headers        |        2.0.6 | MIT                  | [npm archive](https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.6.tgz)             |
| PDF.js               |      6.3.289 | Apache-2.0           | [npm archive](https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-6.3.289.tgz)                 |
| quick-lru            |        6.1.2 | MIT                  | [npm archive](https://registry.npmjs.org/quick-lru/-/quick-lru-6.1.2.tgz)                     |
| UTIF.js              |        4.1.0 | MIT                  | [npm archive](https://registry.npmjs.org/utif2/-/utif2-4.1.0.tgz)                             |
| wasm-feature-detect  |        1.9.0 | Apache-2.0           | [npm archive](https://registry.npmjs.org/wasm-feature-detect/-/wasm-feature-detect-1.9.0.tgz) |
| web-worker           |        1.5.0 | Apache-2.0           | [npm archive](https://registry.npmjs.org/web-worker/-/web-worker-1.5.0.tgz)                   |
| xml-utils            |       1.10.2 | CC0-1.0              | [npm archive](https://registry.npmjs.org/xml-utils/-/xml-utils-1.10.2.tgz)                    |
| zstddec              |        0.2.0 | MIT AND BSD-3-Clause | [npm archive](https://registry.npmjs.org/zstddec/-/zstddec-0.2.0.tgz)                         |

### AVIF decoder

The unmodified WASM file from @jsquash/avif 2.1.1 contains libavif 1.0.1 and
the libaom AV1 decoder 3.7.0. Their exact sources and notices are:

- [libavif 1.0.1 source](https://github.com/AOMediaCodec/libavif/archive/refs/tags/v1.0.1.tar.gz),
  with its complete BSD and bundled third-party notices at
  `vendor/avif/LIBAVIF-1.0.1.LICENSE`; and
- [libaom 3.7.0 source](https://aomedia.googlesource.com/aom/+archive/refs/tags/v3.7.0.tar.gz),
  with its BSD-2-Clause notice at `vendor/avif/LIBAOM-3.7.0.LICENSE`.

`vendor/avif/SOURCE-NOTICE.json` records the shipped WASM digest and exact
source/license mapping. anyjpg changes only a temporary in-memory copy to add a
maximum-memory bound before compilation; the distributed package WASM remains
byte-for-byte unchanged.

### resvg WASM decoder

The MPL-2.0 source corresponding to the unmodified @resvg/resvg-wasm 2.6.2
package is [yisibl/resvg-js v2.6.2](https://github.com/yisibl/resvg-js/tree/v2.6.2).
Its patched resvg workspace source is fixed at commit
`3495d8705b302d6d266748516973606ca9657906`, and its woff2 dependency is fixed
at commit `88cce4cd07da2c3f35839068c6f73672700cfc8b`.

The complete notices and source links for Rust and other code incorporated in
the WASM are distributed at `vendor/resvg/THIRD_PARTY_LICENSES.md`. The
open-source generator, locked overinclusive audit graph, and exact binary
component manifests are distributed under `vendor/resvg/license-audit/`. The
bundle includes the Rust standard-library copyright and dual MIT/Apache-2.0
terms. anyjpg changes only a temporary in-memory copy to add a maximum-memory
bound before compilation; the distributed package WASM remains byte-for-byte
unchanged.

### HEIF decoder

The unmodified libheif-js 1.19.8 WASM contains libheif 1.19.8 and the linked
libde265 1.0.15 HEVC decoder. Both remain covered by LGPL-3.0. Their exact
corresponding sources are [libheif 1.19.8](https://github.com/strukturag/libheif/archive/refs/tags/v1.19.8.tar.gz)
and [libde265 1.0.15](https://github.com/strukturag/libde265/releases/download/v1.0.15/libde265-1.0.15.tar.gz).
The matching [libheif Emscripten build procedure](https://github.com/strukturag/libheif/blob/v1.19.8/build-emscripten.sh)
defaults to that libde265 release.

Their complete license texts are at `vendor/heif/LICENSE` and
`vendor/heif/LIBDE265-1.0.15.COPYING`. The WASM module is replaceable without
changing the proprietary application. Instructions are in
`LIBHEIF_RELINKING.md` and the deployed `vendor/heif/RELINKING.md`.
`vendor/heif/SOURCE-NOTICE.json` records exact sources, versions, hashes, and
the local loader transform. That transform is provided under LGPL-3.0 at
`vendor/heif/MODIFICATION-SOURCE.mjs`.

### PDF.js embedded runtimes

The shipped PDF.js 6.3.289 legacy bundles incorporate core-js 3.50.0. Its
exact MIT notice is distributed at `vendor/pdfjs/CORE_JS_3.50.0.LICENSE`, and
its exact source is [core-js v3.50.0](https://github.com/zloirock/core-js/tree/v3.50.0).

PDF.js also ships `quickjs-eval.js` and `quickjs-eval.wasm`, generated from
[QuickJS commit `3d5e064e9dd67c70f7962836505a7fa067bf0a4e`](https://github.com/bellard/quickjs/tree/3d5e064e9dd67c70f7962836505a7fa067bf0a4e)
through [pdf.js.quickjs build commit `b62f7cd527363ca2c1fe7467f274bc9acbf78c24`](https://github.com/mozilla/pdf.js.quickjs/tree/b62f7cd527363ca2c1fe7467f274bc9acbf78c24).
Both projects are MIT-licensed; the wrapper project's exact notice is sourced
from its later [license commit `e2c5bfc8194b16f5973eea5e4e025b67be3c1015`](https://github.com/mozilla/pdf.js.quickjs/tree/e2c5bfc8194b16f5973eea5e4e025b67be3c1015).
The exact notices are distributed beside those artifacts as
`vendor/pdfjs/wasm/LICENSE_QUICKJS` and
`vendor/pdfjs/wasm/LICENSE_PDFJS_QUICKJS`. anyjpg disables QuickJS evaluation
at runtime, but retains the upstream artifacts and notices in the distribution.

The distribution also carries PDF.js's standalone image-decoder bundle,
`pdfjs-dist/legacy/image_decoders/pdf.image_decoders.min.mjs`, unmodified at
`vendor/pdfjs/image-decoders.js`. It is the only PDF.js distribution that
exports `JpxImage` publicly, and anyjpg uses it to decode standalone JPEG 2000
files through the same `vendor/pdfjs/wasm/openjpeg.wasm` the PDF path already
loads. The OpenJPEG notice is distributed at
`vendor/pdfjs/wasm/LICENSE_OPENJPEG`.

License texts and package-specific notices are distributed under
`vendor/licenses/` and the component directories under `vendor/`. PDF.js also
ships licenses for its CMaps, fonts, ICC profiles, and codec modules alongside
those assets.

## Local modifications to open-source distribution files

For memory safety, the vendor build changes only declared WebAssembly maximum
memory values in selected PDF.js codec files and the embedded compression
codec payloads in GeoTIFF.js. It does not alter their executable instructions,
imports, exports, or initial memory. The exact open-source Apache-2.0
transformation is distributed at
`vendor/modifications/wasm-memory-hardener.mjs`; file-by-file details and caps
are at `vendor/modifications/README.md`.

The PDF.js worker also includes a project-owned proprietary guard around its
decoded-stream buffers. It applies a 32 MiB cumulative ceiling per disposable
PDF decoder worker, covering both synchronous buffer growth and browser-native
asynchronous decompression, including the bundled Brotli fallback, and fails
closed before a larger allocation.

## jpegli encoder

The deployed JPEG encoder incorporates jpegli at commit
`031a0077f5799a6041004267fc12b956c1f52a20`, under its BSD 3-Clause license.
The exact source is available from
[google/jpegli at that commit](https://github.com/google/jpegli/tree/031a0077f5799a6041004267fc12b956c1f52a20).
The license text is distributed as `JPEGLI.LICENSE`. The same binary links
jpegli's decoder from that commit, which the optional post-encode PSNR/SSIM
measurement uses to read a finished JPEG back inside the encoder module.

The linked encoder binary also incorporates Highway 1.3.0 at commit
`271a9a0ed9de1232d9117f1572c3fe28f8542ec1`. Highway is available under the
recipient's choice of Apache-2.0 or BSD-3-Clause; its license file also covers
the CC0-1.0 terms used by `hwy/contrib/random/random-inl.h`. The exact source is
available from
[google/highway at that commit](https://github.com/google/highway/tree/271a9a0ed9de1232d9117f1572c3fe28f8542ec1).
The complete, unmodified upstream license file is distributed as
`HIGHWAY.LICENSE`.

## libjxl JPEG XL decoder

JPEG XL sources are decoded by a separate WebAssembly module built from
libjxl 0.12.0 at commit `a7a9c787341cf703dede03c2009fa460cae5e5df`, under its
BSD 3-Clause license. The exact source is available from
[libjxl/libjxl at that commit](https://github.com/libjxl/libjxl/tree/a7a9c787341cf703dede03c2009fa460cae5e5df).
The license text is distributed as `LIBJXL.LICENSE`.

Only libjxl's decoder is linked. Its colour management system (`jxl_cms`) and
the skcms library it wraps are deliberately excluded from the binary: an
encoding outside this application's exact-matrix set is refused rather than
approximated by a second colour engine, which is the same policy every other
WebAssembly-decoded container follows.

That module links Brotli at commit
`028fb5a23661f123017c060daa546b55cf4bde29`, used for the decoder's entropy
coding of metadata boxes. Brotli is available under the MIT license, and the
complete, unmodified upstream license file is distributed as `BROTLI.LICENSE`.
The exact source is available from
[google/brotli at that commit](https://github.com/google/brotli/tree/028fb5a23661f123017c060daa546b55cf4bde29).

The same module links Highway at commit
`457c891775a7397bdb0376bb1031e6e027af1c48`, which is the revision libjxl pins
rather than the one the encoder uses. It is covered by the same terms and the
same `HIGHWAY.LICENSE` text described above.

## Emscripten and compiler runtime

The project encoder is built with Emscripten 6.0.1 at upstream commit
`25e4e8d6550d392ba9e0c2936bce7cf41ee47cc0`. Its JavaScript output is built
with `EMIT_EMSCRIPTEN_LICENSE=1`. The generated JavaScript/WebAssembly also
incorporates portions of the Emscripten runtime, musl libc, libc++, libc++abi,
compiler-rt, and potentially libunwind. Their complete notices from that exact
toolchain revision are distributed under `vendor/licenses/` as:

- `emscripten-6.0.1.LICENSE`;
- `emscripten-6.0.1-musl.COPYRIGHT`;
- `emscripten-6.0.1-libcxx.LICENSE`;
- `emscripten-6.0.1-libcxxabi.LICENSE`;
- `emscripten-6.0.1-compiler-rt.LICENSE`; and
- `emscripten-6.0.1-libunwind.LICENSE`.

Exact source: [Emscripten 6.0.1](https://github.com/emscripten-core/emscripten/tree/25e4e8d6550d392ba9e0c2936bce7cf41ee47cc0).
Precompiled third-party decoder glue may also contain Emscripten runtime code;
where its upstream compiler revision was not published, these notices are
provided conservatively in addition to the decoder package's own terms.

## No endorsement

Names and trademarks of third-party projects belong to their respective
owners. Their inclusion does not imply endorsement of anyjpg.
