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:
@@ -2294,6 +2294,8 @@ const MIME = {
|
||||
'.ico': 'image/x-icon',
|
||||
'.woff2': 'font/woff2',
|
||||
'.map': 'application/json; charset=utf-8',
|
||||
// Served for any WebAssembly asset that ends up in the build output.
|
||||
'.wasm': 'application/wasm',
|
||||
};
|
||||
|
||||
async function serveStatic(req, res, url) {
|
||||
|
||||
Reference in New Issue
Block a user