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:
@@ -20,7 +20,7 @@ This matters because an earlier design assumed an Electron desktop app. It is no
|
||||
- **Raw path:** `libraw-wasm` in a `worker_threads` pool (`server/libraw-pool.mjs`),
|
||||
`open()` + `imageData()` → 8-bit sRGB JPEG proxy at `RAW_PREVIEW_EDGE = 6000`
|
||||
long edge (`server/config.mjs:14`, `RAW_PREVIEW_EDGE`). `sharp` for JPEG ingest,
|
||||
`lensfun-wasm` for lens correction.
|
||||
Lensfun's calibration data with Luminary's own correction engine (`src/lib/lensEngine.ts`).
|
||||
- **Renderer:** `src/gl/renderer.ts`. `setImage()` uploads one `u_src` texture
|
||||
(`:1144`), grade pass samples it at `:1296`, finish pass at `:1553`.
|
||||
- **Export:** `src/lib/export.ts` builds a fresh `Renderer` from `getBitmap()` — a
|
||||
|
||||
Reference in New Issue
Block a user