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
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 lex
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,10 +0,0 @@
|
||||
# Notices
|
||||
|
||||
This project bundles and/or links the following third-party components:
|
||||
|
||||
1. Lensfun library source code (`third_party/lensfun/libs`) under LGPL-3.0-or-later.
|
||||
2. Lensfun camera/lens database (`third_party/lensfun/data/db`) under CC BY-SA 3.0.
|
||||
3. tinyxml2 (`third_party/tinyxml2`) under zlib license.
|
||||
4. utf8proc (`third_party/utf8proc`) under MIT license.
|
||||
|
||||
Refer to `THIRD_PARTY_LICENSES.md` for license texts and links.
|
||||
@@ -1,20 +0,0 @@
|
||||
# Third-Party Licenses
|
||||
|
||||
## Lensfun
|
||||
|
||||
- Repository: https://github.com/lensfun/lensfun
|
||||
- Library license: GNU LGPL v3.0 or later
|
||||
- Database license: Creative Commons Attribution-ShareAlike 3.0
|
||||
- Copyright: Lensfun contributors
|
||||
|
||||
## tinyxml2
|
||||
|
||||
- Repository: https://github.com/leethomason/tinyxml2
|
||||
- License: zlib
|
||||
- Copyright: Lee Thomason
|
||||
|
||||
## utf8proc
|
||||
|
||||
- Repository: https://github.com/JuliaStrings/utf8proc
|
||||
- License: MIT
|
||||
- Copyright: utf8proc contributors
|
||||
@@ -1,23 +0,0 @@
|
||||
# Upstream Tracking
|
||||
|
||||
## Source of truth
|
||||
|
||||
- Upstream repo: https://github.com/lensfun/lensfun.git
|
||||
- Integration mode: git submodule (`third_party/lensfun`)
|
||||
- Current pinned commit: `655a9c4e3e53c25bc04843c853e7e7a0121359e7`
|
||||
- Commit date: `2026-02-28`
|
||||
- Commit subject: `Add tca data for Meike SL 35mm F1.8 STM PRO`
|
||||
|
||||
## Update policy
|
||||
|
||||
- Pin exact commits.
|
||||
- Upgrade manually via PR.
|
||||
- Run full build/test after each bump.
|
||||
|
||||
## Update steps
|
||||
|
||||
1. `scripts/sync-upstream.sh origin/master`
|
||||
2. Review upstream diff impact (API, DB changes, compile behavior)
|
||||
3. Rebuild wasm assets
|
||||
4. Run tests
|
||||
5. Update this file with new commit metadata
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user