Commit Graph

25 Commits

Author SHA1 Message Date
bhursey 7f0838156b Write ratings, keywords, hierarchy and IPTC to XMP
Sidecars and JPEG exports now carry xmp:Rating, xmp:Label, dc:subject and
lr:hierarchicalSubject plus the IPTC core, and importing a sidecar applies its
cataloguing fields independently of its develop settings. Hierarchical keywords
keep leaf terms in the flat list, so search and filters are unchanged.
2026-12-02 03:30:57 +00:00
bhursey fa0a7e64ef Speed up raw imports and add a per-import 16-bit toggle
Import raws four at a time to match the decoder pool, compress the 16-bit
sidecar with RLE on the libuv pool, and demosaic X-Trans files in a single
Markesteijn pass so Fuji imports no longer queue into decode timeouts. The
import dialog now offers 16-bit (default) or 8-bit per import, sent as
`?sidecar=0`, and the camera thumbnail and embedded-preview fallbacks no
longer drop to 8-bit samples or store a 0x0 photo.
2026-12-02 03:25:53 +00:00
bhursey c5d5d6598d Release 0.5.4 with JPEG XL export
Bumps the version, moves the changelog entry out of Unreleased, updates the
guide to version 1.3 and regenerates its PDF, and records the security audit
in the release notes.
2026-12-01 14:56:40 +00:00
bhursey 3759b47bc6 Add JPEG XL export with a lossless option
Export now offers JPEG XL (8-bit sRGB) next to JPEG, PNG, WebP and 16-bit
TIFF, encoded on-device by libjxl compiled to WebAssembly so the export stays
offline. The codec loads only when a JXL is chosen, the quality slider applies
to the lossy mode, and a lossless switch disables it. The user guide and
changelog describe the format and its current limits (no ICC or XMP yet).

Also adds SECURITY-AUDIT.md with the dependency scan and the review of the
server's trust boundaries.
2026-12-01 14:43:29 +00:00
bhursey 93168de914 Document the 0.5.3.1 desktop release and add a changelog
The README described only the browser and team-server modes, so the desktop
bundles, their offline behaviour and the native Windows window were undocumented,
and there was no changelog to point testers at.
2026-12-01 13:12:50 +00:00
bhursey f7942d0bd0 Offer SCUNet and NLM alongside the guided denoise
The AI denoise panel now picks between three bases: the existing guided
filter, non-local means and a learned SCUNet model run through
onnxruntime-node on overlapping tiles. The base is part of the render key, so
each model keeps its own cached render and switching back is instant, and jobs
report stage and tile progress instead of a bare spinner.

onnxruntime-node is pinned to 1.23.0, the last release that ships both macOS
architectures, and every Docker and desktop install skips its CUDA download
because only the CPU binaries in the package are used. The SCUNet weights and
ONNX Runtime are added to the third-party notices, the deb copyright file and
the README's denoise, API and redistribution sections.
2026-12-01 04:03:53 +00:00
bhursey b34d34dacb Package a self-contained macOS app and harden serving
- Add macos/build.mjs: stages a universal .app outside the checkout, bundles
  and checksums Node, installs production deps per architecture, compiles the
  launcher shim, signs ad-hoc or with a Developer ID, and writes a zip and dmg
  with an optional notarization path.
- Serve precompressed brotli/gzip assets and split admin panels and the public
  pages out of the main bundle.
- Support HTTP range requests, and fix upload and quota accounting, gallery
  download counts and unreadable-file handling.
- Add server HTTP integration tests, a Gitea CI workflow, a catalog backup
  script and a crash screen for the UI.
2026-11-29 06:23:58 +00:00
bhursey 24deb8e69b Deploy through the predeploy gate instead of by hand.
`npm run deploy` now runs the gate (typecheck, unit suite, render check) before
anything is copied, then rsyncs the source, rebuilds and restarts the service on
the target from LUMINARY_DEPLOY_* variables, and fails if the server is not
serving the same bundle hashes as the reviewed local build. npm runs a script
named predeploy before deploy on its own, so the gate runs once; invoked as
`node scripts/deploy.mjs` the script gates itself. Both scripts exit through
process.exitCode, because process.exit() truncated the failure messages when
they were piped.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 15:20:18 +00:00
bhursey 4b17ca00db Skip the pre-deploy build when only test files changed.
predeploy was a shell chain that always rebuilt, so a test-only edit paid for a
full Vite build. It is now scripts/predeploy.mjs: typecheck, tests and the render
check always run, and the build is skipped when a content hash of the bundle
inputs (src and public minus test files, plus the Vite/TS/package config) matches
the last successful build. The signature lives in node_modules/.cache, so it is
gitignored and never rsynced to the server.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 15:02:00 +00:00
bhursey a67e9ef458 Name the channels in the shadow clipping warning too.
Shadow warnings were a flat blue, so a single crushed channel looked the same as
all three. The shadow branch now uses the highlight palette: red/green/blue for
one channel, yellow (red+green), magenta (red+blue) and cyan (green+blue) for
pairs, white for all three. The render check covers both ends of the range, and
`npm run predeploy` chains typecheck, tests, the render check and the build so a
shader regression cannot reach a deploy.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 14:40:50 +00:00
bhursey a6491f6ef6 Show the clipping overlay's per-channel colours and follow the sliders.
The overlay had been collapsed to a single highlight bit, so every warning was
white. It now reads the finished frame per channel again: red for one clipped
channel, yellow for two, white for all three, and it updates as Exposure or
Recovery moves, which is what holding Ctrl is for. The render check renders the
overlay and asserts both the colours and that +6 EV turns a clear band white.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 14:38:48 +00:00
bhursey fe9d2aff3f Name the clipped channels in the Ctrl clipping overlay again.
0c113e7 packed clipping into two alpha states (shadow / highlight), so the finish
pass could only paint white even though the legend still promised red, green,
blue and yellow. The grade pass now writes a 4-bit code (R/G/B + shadow) into
alpha and the overlay paints the channels it actually lost: red for one, yellow
for two, white for all three. The render check renders the overlay so this
cannot regress silently.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 14:35:30 +00:00
bhursey 1e7ec0cf15 Add a headless render check for the 16-bit sidecar swap.
The proxy and sidecar reach the GPU through different upload paths, and whether
they agree depends on UNPACK_FLIP_Y_WEBGL being ignored for ImageBitmap. A unit
test cannot see that, so the picture could silently start flipping again. The
check encodes a two-tone sidecar with the server's encoder, serves it beside the
matching JPEG and measures the rows that land in a WebGL2 texture in headless
Chrome.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 14:30:36 +00:00
bhursey c10ff97670 Upload the 16-bit sidecar unflipped so it matches the JPEG proxy.
Chrome ignores UNPACK_FLIP_Y_WEBGL for ImageBitmap uploads, so the JPEG proxy
lands in the texture top-down while the parser pre-flipped the sidecar rows.
The picture jumped upside down a few seconds after load, when the sidecar
replaced the proxy. The parser now keeps the PNG's row order.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-28 06:59:55 +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 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 e0c76ba965 License the application code under MIT
The project is meant to be open source, so replace the proprietary notice with
the MIT licence, declare MIT in package.json, and update the README and the
consolidated notices so they describe the grant accurately while keeping
third-party terms, including the Lensfun database's CC BY-SA 3.0, untouched.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-23 16:18:27 +00:00
bhursey f892688136 Add root licence and consolidated third-party notices
Formalise the existing all-rights-reserved position with a proprietary root
LICENSE and mark the package UNLICENSED, then collect the third-party terms in
one THIRD_PARTY_NOTICES.md: resolved versions, copyright lines, the MIT/MIT-0/
zlib texts, the Apache-2.0 text copied from sharp, the PDF's embedded Liberation
and DejaVu font licences, and explicit pointers for the LGPL, CDDL and CC BY-SA
texts that still need to be bundled. The README's claim that no root licence
exists is updated to match.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-23 16:12:48 +00:00
bhursey 5ee21f87a8 Attribute bundled licences precisely in the README
Correct the licensing record so redistribution terms are unambiguous: the
Lensfun database is CC BY-SA 3.0 (not OSI open source) while the WASM wrapper's
LICENSE is MIT, LibRaw keeps LGPL-2.1/CDDL despite the wrapper's ISC metadata,
and sharp's binaries bundle LGPL libvips. Add pinned upstream links, a
per-component licence table, attribution and share-alike terms, a no-endorsement
statement, a redistribution checklist, and the undocumented provenance of the
raw-noise denoise pipeline.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-23 15:53:11 +00:00
bhursey 5d5fea4e91 Document Luminary end to end in the README
Replace the README with full project documentation: both run modes, every
setting including undocumented ones, production and Docker deployment,
architecture and module map, SQLite schema and asset layout, the complete
HTTP API, workspace/session rules, quota pruning and mail behaviour, raw and
denoise pipelines, development conventions, troubleshooting and limitations.
Facts were taken from the source rather than the previous text.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-23 15:34:33 +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