Attribute bundled licences precisely in the README

Correct the licensing record so redistribution terms are unambiguous: the
Lensfun database is CC BY-SA 3.0 (not OSI open source) while the WASM wrapper's
LICENSE is MIT, LibRaw keeps LGPL-2.1/CDDL despite the wrapper's ISC metadata,
and sharp's binaries bundle LGPL libvips. Add pinned upstream links, a
per-component licence table, attribution and share-alike terms, a no-endorsement
statement, a redistribution checklist, and the undocumented provenance of the
raw-noise denoise pipeline.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-23 15:53:11 +00:00
parent 5d5fea4e91
commit 5ee21f87a8
+102 -17
View File
@@ -40,7 +40,7 @@ look when it is later uploaded to a server workspace.
- [Development workflow](#development-workflow) - [Development workflow](#development-workflow)
- [Troubleshooting](#troubleshooting) - [Troubleshooting](#troubleshooting)
- [Limitations](#limitations) - [Limitations](#limitations)
- [Third-party software and licences](#third-party-software-and-licences) - [Third-party attribution and licences](#third-party-attribution-and-licences)
--- ---
@@ -705,11 +705,16 @@ busy count.
## Detail-preserving denoise ## Detail-preserving denoise
`server/denoise/` is a dependency-free pipeline (planes, noise estimation, colour, `server/denoise/` is a dependency-free pipeline (planes, noise estimation, colour,
detail, RGB reconstruction) copied from the `raw-noise` project. It reconstructs each detail, RGB reconstruction) adapted from the `raw-noise` project. It reconstructs each
pixel as a crossfade between the source and a denoised base, so the result is bounded by pixel as a crossfade between the source and a denoised base, so the result is bounded by
the original pixels and cannot ring or overshoot: flat noise is replaced, structure is the original pixels and cannot ring or overshoot: flat noise is replaced, structure is
handed back verbatim. handed back verbatim.
**Provenance.** `raw-noise` is not published on npm, and no copyright or licence notice
for it is included in this repository. Before redistributing Luminary, add the origin's
notice and terms to `server/denoise/`, or replace that folder with an independently
licensed implementation.
- The server always renders the full-strength denoise and the GPU blends it, so the - The server always renders the full-strength denoise and the GPU blends it, so the
Amount slider is instant, one file serves every amount, and the amount cannot be Amount slider is instant, one file serves every amount, and the amount cannot be
applied twice. applied twice.
@@ -725,11 +730,25 @@ handed back verbatim.
## Lens profiles ## Lens profiles
Lens correction uses the official [Lensfun](https://lensfun.github.io/) database through Lens correction uses the [Lensfun](https://lensfun.github.io/) camera and lens database
its WebAssembly build (`@neoanaloglabkk/lensfun-wasm`). Runtime assets are served from through the [`@neoanaloglabkk/lensfun-wasm`](https://github.com/lexluthor0304/LensfunWasm)
`public/lensfun/`: the library is LGPL-3.0-or-later and the camera/lens database is build. Runtime assets are served from `public/lensfun/`.
CC BY-SA 3.0; the bundled `LICENSE`, `NOTICE.md`, `THIRD_PARTY_LICENSES.md` and
`UPSTREAM.md` sit next to the assets. - **Database** — © Lensfun contributors, licensed
[CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/), taken from
Lensfun `data/db` at commit
[`655a9c4`](https://github.com/lensfun/lensfun/tree/655a9c4e3e53c25bc04843c853e7e7a0121359e7/data).
It is redistributed as bundled by the wrapper build; Luminary adds no profiles of its
own.
- **Library** — Lensfun is LGPL-3.0 (the bundled notice states "or later"), compiled to
WebAssembly. Corresponding source is the upstream repository at the pinned commit plus
the wrapper's build scripts.
- **Bundled files** — `public/lensfun/LICENSE` is the **MIT licence of the WASM
wrapper**, not of the database or the library. `NOTICE.md`,
`THIRD_PARTY_LICENSES.md` and `UPSTREAM.md` record the other components and the pin.
See [Third-party attribution and licences](#third-party-attribution-and-licences) before
redistributing the app or its container image.
Profiles load lazily the first time the Optics panel needs one, so a library that never Profiles load lazily the first time the Optics panel needs one, so a library that never
uses lens correction does not download the ~5 MB database. A profile is built for the uses lens correction does not download the ~5 MB database. A profile is built for the
@@ -828,15 +847,81 @@ There are no server integration tests; the API is exercised through the UI.
--- ---
## Third-party software and licences ## Third-party attribution and licences
| Component | Licence / terms | Luminary bundles and links the components below. Versions are those resolved in
| --- | --- | `package-lock.json`; the Lensfun pin is recorded in `public/lensfun/UPSTREAM.md`.
| Lensfun database and WASM build | Library LGPL-3.0-or-later; database CC BY-SA 3.0. Keep attribution and share-alike terms if reused or redistributed | Licences are named as each project declares them — not all of them are OSI-approved
| LibRaw (`libraw-wasm`) | LGPL-2.1 / CDDL-1.0 (LibRaw terms); used for raw demosaic | "open source" licences, and this document does not treat the two as synonyms.
| `sharp` / libvips | Apache-2.0 |
| React, Vite, TypeScript | MIT / Apache-2.0 |
| Luminary application code | Non-commercial project; no licence file is included in this repository |
Lensfun notices and licence texts ship in `public/lensfun/` and are served with the ### Licence status of this repository
assets, as the database terms require.
No licence is granted for the Luminary application code. There is no root `LICENSE`, and
`package.json` is marked `private`, so copyright in the application code remains with the
author and all rights are reserved. Third-party components keep their own terms whatever
licence Luminary later adopts.
### Components
| Component | Version / pin | Upstream | Licence | Notes |
| --- | --- | --- | --- | --- |
| Lensfun library | `655a9c4` | [lensfun/lensfun](https://github.com/lensfun/lensfun) | LGPL-3.0; bundled notices say "or later" | Compiled to WebAssembly; distribution needs the licence text and corresponding source |
| Lensfun database | `655a9c4` | [lensfun `data/db`](https://github.com/lensfun/lensfun/tree/655a9c4e3e53c25bc04843c853e7e7a0121359e7/data) | CC BY-SA 3.0 Unported | © Lensfun contributors; shipped as `public/lensfun/lensfun-core.data`; attribution and share-alike apply |
| Lensfun WASM wrapper | 0.1.3 | [lexluthor0304/LensfunWasm](https://github.com/lexluthor0304/LensfunWasm) | MIT | `public/lensfun/LICENSE` is this licence and covers neither the database nor the library |
| LibRaw | via `libraw-wasm` 1.6.0 | [LibRaw/LibRaw](https://github.com/LibRaw/LibRaw) | LGPL-2.1 **or** CDDL-1.0 (dual) | The decoder compiled into the WASM |
| `libraw-wasm` | 1.6.0 | [ybouane/LibRaw-Wasm](https://github.com/ybouane/LibRaw-Wasm) | ISC | Binding layer only; its metadata does not replace LibRaw's terms for the compiled library |
| `sharp` | 0.35.5 | [lovell/sharp](https://github.com/lovell/sharp) | Apache-2.0 | Prebuilt binaries bundle libvips |
| libvips | bundled by `sharp` | [libvips/libvips](https://github.com/libvips/libvips) | LGPL-2.1-or-later | Applies when distributing binaries or container images |
| tinyxml2 | bundled in Lensfun WASM | [leethomason/tinyxml2](https://github.com/leethomason/tinyxml2) | zlib | |
| utf8proc | bundled in Lensfun WASM | [JuliaStrings/utf8proc](https://github.com/JuliaStrings/utf8proc) | MIT | |
| `exifr` | 7.1.3 | [MikeKovarik/exifr](https://github.com/MikeKovarik/exifr) | MIT | Browser EXIF parsing |
| `nodemailer` | 7.0.13 | [nodemailer](https://github.com/nodemailer/nodemailer) | MIT-0 | SMTP notifications |
| React / React DOM | 18.3.1 | [facebook/react](https://github.com/facebook/react) | MIT | |
| Vite / Vitest / plugin-react | 5.4.21 / 2.1.9 / 4.7.0 | [vitejs/vite](https://github.com/vitejs/vite) | MIT | |
| TypeScript | 5.9.3 | [microsoft/TypeScript](https://github.com/microsoft/TypeScript) | Apache-2.0 | |
| Node.js / Debian base image | `node:24-bookworm-slim` | [nodejs.org](https://nodejs.org) / [debian.org](https://www.debian.org) | Node and Debian terms | Only relevant when the container image is redistributed |
### Lensfun: attribution and share-alike
```text
Lens database: © Lensfun contributors, CC BY-SA 3.0 Unported
https://lensfun.github.io/ · https://creativecommons.org/licenses/by-sa/3.0/
Pinned source: https://github.com/lensfun/lensfun/tree/655a9c4e3e53c25bc04843c853e7e7a0121359e7
```
Keep that attribution with the assets. If you modify the database — for example by
adding your own lens profiles to the XML — the modified database must be distributed
under CC BY-SA 3.0 or a compatible licence, and the changes must be indicated. Do not
describe the database as MIT, public domain, or OSI-approved open source: it is a
Creative Commons content licence, and it grants neither patent nor trademark rights.
### Redistribution checklist
`public/lensfun/` currently ships the notices (`NOTICE.md`, `THIRD_PARTY_LICENSES.md`,
`UPSTREAM.md`) and the wrapper's MIT `LICENSE`, but **not** the full LGPL-3.0 or
CC BY-SA 3.0 texts. Before distributing Luminary or its container image:
1. Add the upstream licence texts beside the assets: Lensfun `COPYING` and
`COPYING.LESSER` (the LGPL incorporates GPL-3.0 by reference), and
`data/COPYING.CC_BY-SA_3.0` for the database.
2. Keep the notices, the pinned commit and the attribution block above in the distributed
copy, served from `public/lensfun/` as they are today.
3. Provide corresponding source for the LGPL components: Lensfun and LibRaw at the
versions actually built, plus tinyxml2 and utf8proc. Leave
`dist/lensfun/lensfun-core.wasm` and its JS loader replaceable.
4. When publishing a container image, include the same files and the libvips, Node.js and
Debian notices.
5. Do not relicense third-party assets under Luminary's own terms, and do not add
proprietary profiles to the CC BY-SA database.
6. Confirm the licence of any fonts embedded in the bundled user-guide PDF before
redistributing it.
7. Record the terms of the `server/denoise/` pipeline's `raw-noise` origin; it is not
published on npm and its licence is currently undocumented here.
### No endorsement
Lensfun, LibRaw, libvips, sharp and the camera and lens names in profiles are the marks
of their respective owners. They are used descriptively to identify the software and
hardware involved. Luminary is not affiliated with, endorsed by, or certified by any of
them, and its corrections come from the community Lensfun database rather than any
manufacturer's own profile system.