Replace the Lensfun WebAssembly runtime with our own lens engine.
The wrapper's wasm, its 5 MB data blob and the runtime chunk were fragile to serve (CSP, MIME, cache) and pulled an LGPL runtime into the bundle just for calibration data. The Lensfun XML is now converted at build time into public/lens-db/profiles.json, and search, matching and the correction maths live in src/lib/lensDb.ts and src/lib/lensEngine.ts. Maps are pinned against output captured from the previous implementation, so results are unchanged. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# Lens database notice
|
||||
|
||||
`profiles.json` in this directory is a converted copy of the Lensfun camera and lens
|
||||
database, produced by `scripts/build-lens-db.mjs`.
|
||||
|
||||
```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/data
|
||||
```
|
||||
|
||||
- Only the calibration measurements come from Lensfun. The correction maths, the
|
||||
search/matching code and the file format are Luminary's own (MIT).
|
||||
- The data remains under CC BY-SA 3.0. Keep this attribution with it, and if you edit
|
||||
`profiles.json` or regenerate it with different calibration data, distribute the
|
||||
result under CC BY-SA 3.0 or a compatible licence and indicate the changes.
|
||||
- Do not describe the database as MIT, public domain or OSI-approved open source: it is
|
||||
a Creative Commons content licence and grants neither patent nor trademark rights.
|
||||
- The full licence text is not bundled here; add Lensfun's
|
||||
`data/COPYING.CC_BY-SA_3.0` beside this file before redistributing the app or its
|
||||
container image.
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user