Commit Graph

13 Commits

Author SHA1 Message Date
bhursey 27360ffae7 Import TIFF through the server and survive a wedged raw decoder
Browsers have no TIFF decoder, so TIFF import failed at createImageBitmap
and the develop canvas asked for the undecodable original. TIFF now takes
the raw proxy path (original stored, sharp writes the JPEG proxy) and the
editor reads that proxy. LibRaw demosaic and preview calls are bounded so
one bad file falls back to the embedded preview instead of hanging.
2026-11-28 20:49:25 +00:00
bhursey b79f6c9a4e Give the Windows bundle a single-user mode without sign-in
LUMINARY_LOCAL=1 creates one local admin and treats an unauthenticated
request as that account, so the packaged desktop app opens signed in. It
is off unless the launcher sets it, leaving the shared server and Docker
deploy unchanged.
2026-11-28 18:33:08 +00:00
bhursey 5c2903eeef Apply the lens vignetting gain in linear light.
Lensfun's vignetting coefficients describe linear transmission, so
multiplying them into the sRGB-encoded proxy brightened the corners far
more than the lens had lost and over-exposed the edges. The gain now runs
after the decode, in both the grade and the eyedropper.

Existing records that stored the old auto-enabled flag are cleared once,
on the server catalogue at boot and in the browser cache on its next
IndexedDB upgrade, and the Optics panel says when the correction is off.
2026-11-28 16:34:31 +00:00
bhursey c7b01b31cb Resume the preview rebuild where a restart left it.
The job only lived in memory, so every deploy discarded hours of proxy work and
the next run started at the first photo. Mirror progress to the storage root
after each photo and pick the pending ids back up on boot.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 06:45:37 +00:00
bhursey 158dccddf1 Add an admin action that rebuilds preview proxies
A library imported by an older pipeline keeps whatever proxy it was given, and
the editor can only show those bytes. The Storage tab now re-decodes every
camera raw from its original, writing a fresh JPEG proxy, thumbnail, 16-bit
sidecar and denoise prune, then stamps previewVersion so browsers refetch.

The decode loop runs one photo at a time on the server behind a status route:
an hour of LibRaw work would time out as a request, and parallel decodes would
starve the editor. The single-photo reprocess route shares the same helper.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 06:20:44 +00:00
bhursey 9051b9cfc1 Cover the server 16-bit imaging helpers with tests
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 05:49:47 +00:00
bhursey 749047ae9e Match EXIF lens names by brand and share team calibrations
EXIF folds the brand into the focal range ("EF75-300mm"), so split letters
from digits before scoring, keep the score a pure name score that a caller can
trust, and rank a same-mount-family lens higher without filtering. Auto-match
now declines below 0.75 rather than applying the best of a bad list.

Lenses the bundled database lacks can be measured in-house: /api/lens-profiles
stores calibrations in SQLite, the Optics panel edits them and marks them
"Team", and search treats them as ordinary entries.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 05:49:47 +00:00
bhursey 16456c3c69 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>
2026-11-28 05:17:02 +00:00
bhursey 637629385a Show camera profiles in every view and remember proof and DCP settings.
A profile chosen for a raw only changed Develop and exports, so the grid,
Compare and preset previews could disagree with the file. They now grade
camera-native samples, while the proof profile persists with a rendering
intent and DCP matrices can be reused per camera body.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 04:04:44 +00:00
bhursey 0c113e7a91 Land camera-native raw profiles, real ICC soft proofing and 16-bit proxies.
Camera profiles, proofing tables and the half-float sidecar all have to agree
with the pixels the editor actually grades, so they land together with the
preset filter menu that was unusable while thumbnails streamed in.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 03:59:55 +00:00
bhursey 0b3ab76405 Add the optional Immich integration and manual gallery push
Immich connections stay server-side with an encrypted API key, albums can be
imported, and photos are only sent back when an event's push button is pressed:
originals upload once, edited photos re-render, and edits hashes plus checksums
skip anything already in Immich. This also lands the accompanying editor, cloud
and administration work that was still uncommitted.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-25 17:43:05 +00:00
bhursey c1f9d99d80 Stop scheduled prunes at the quota target
Pruning previously deleted every photo in the plan; it now halts once usage is
back under the cleanup target, so a plan computed earlier cannot over-delete.
If the library is already below target the cleanup is cancelled and the owner is
notified instead. Notification emails also skip the "open Luminary" link when no
public URL is configured, and the admin panel keys the prune action off the
plan's freed bytes rather than the warning flag.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-23 15:28:25 +00:00
bhursey cd52a2f82f Initial commit: Luminary photo catalog and RAW editor
Browser-based photo catalog with an optional team server (SQLite + LibRaw).
Local database, uploaded photos, build output and dependencies are gitignored.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-23 15:19:25 +00:00