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:
+3
-1
@@ -115,7 +115,9 @@ export interface LensCorrections {
|
||||
}
|
||||
|
||||
export interface LensProfile {
|
||||
/** Lensfun maker/model and the sensor crop used for calibration. */
|
||||
/** Profile id in the bundled lens database, when it came from a search. */
|
||||
id?: string;
|
||||
/** Maker/model and the sensor crop used for calibration. */
|
||||
maker: string;
|
||||
model: string;
|
||||
crop: number;
|
||||
|
||||
Reference in New Issue
Block a user