The mask overlay was always painted while the mask tool was open, at a fixed
strength; it is now a persisted view toggle (O or the Mask button) with its own
strength slider, so the photo underneath stays readable. The mask HUD also
gains + and - so a brush can erase and a shape can subtract without leaving the
canvas.
Local texture, clarity, dehaze and sharpen sampled the baked masks at the view
coordinate in the finish pass, so their coverage slid off the subject under a
crop or zoom. The grade pass now writes each pixel's source coordinate to a
second render target and the finish pass reads the masks through it, which also
follows straightening and lens correction.
The render gate checks the tint and a local dehaze amount through a quarter
frame crop and a synthetic lens warp, plus the tint strength and toggle.
The overlay redrew every stroke as a flat translucent band, so the feather
never appeared and the guide did not match the shape it stood for. The
develop view now tints the selected layer's baked mask, sampled with the
same source uv the adjustments use: the preview follows crops,
straightening, zoom, lens correction, subtract shapes and the feather
exactly as the mask stores it. Only the stroke still under the pointer is
drawn, as a preview of what will be baked, and the histogram is left
alone while a tint is showing.
The render gate now checks the overlay ranks its tint from the dab core
through the feathered rim to untouched pixels outside the brush circle.
The local brush cursor took its height from the canvas aspect and its width
from the frame window, so a cropped or zoomed photo drew an oval cursor
over a round mask, and the stroke preview was scaled the same wrong way.
Both now convert the brush radius through the visible frame on each axis,
which matches the baked mask at any crop or zoom.
The feather band was also invisible in the guide: the preview painted one
flat band and the cursor was a single ring. Painted strokes now show the
soft band under the solid core, and the cursor adds an inner ring at
1 - feather of the radius.
Masks shrink their width instead of clamping their height, so tall or wide
frames keep square mask pixels and round dabs.
Feathering blurred a copy of the stroke and unioned it with the hard
stroke, so coverage stayed at full strength across the whole stroke and
then continued as a halo past the brush outline. The adjustment visibly
spilled outside the brush circle and its rim read as a step rather than a
falloff.
Each stroke is now stamped with a dab that is solid out to 1 - feather of
its radius and fades to nothing at the rim, so the mask follows the brush
circle and softens smoothly at any size. The render gate measures the
dab's core, its rim and the area just outside the circle.
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.
Applying a profile used to enable distortion, CA and vignetting together,
and the flat-field gain lifts the already tone-mapped corners above the
frame centre, over-exposing the edges. Vignetting now defaults off when a
profile is applied or restored from a camera default, and only turns on
when a profile explicitly stored vignetting: true.
A local adjustment is now a list of shapes composited in order (add, subtract,
intersect) instead of a single shape, so dodging and burning can be built from
several brushes, gradients and auto masks without spending layer channels.
Existing edits migrate on load: the flat layer fields become components[0],
keeping geometry, invert, feather and the layer's blend mode unchanged. The
panel gains a shape list with active-shape editing, and the render gate now
asserts a subtract shape clears the group while an intersect keeps it.
Local masks could only shift tone globally, so a burnt sky or a backlit face had
to fight the frame-wide sliders. Each mask now carries an RGB point curve,
applied to the masked pixels before the mask blend. All eight curves ride in one
256×8 LUT texture, so the grade shader needs a single extra sampler rather than
eight. Masks saved before this exist migrate to an identity curve, so old edits
keep their look; the render check fails if the curve stops reaching the grade,
and a unit test pins the LUT's identity, per-row isolation and monotonicity.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
A cluster-based rewrite of the model-free estimator was measured against u2netp
on seven real 60D frames and came out worse than the border-histogram version
(0.214 vs 0.305 mean IoU against the model, best blend weight 0.298), so it was
not shipped. The two cases that mattered are now regression tests: a saturated
object running off the frame must stay out of the subject, and a dark scene with
no clear subject must not be swallowed.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
`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>
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>
The shadow warning gained per-channel colours but the legend only explained the
highlight palette, so the new marks had no key. The legend now switches to the
shadow palette whenever shadow clipping is on, listing one channel, the three
two-channel colours and all three. The render check also fails if the shadow
overlay stops following Exposure, the way the highlight side already did.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
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>
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>
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>
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>
Raw records keep their pixels in `thumbUrl` and leave `thumb` empty, so the
analysis was handed an empty string, failed to decode, and returned neutral
values — which made Auto WB look identical to As shot.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
A rejected draw leaves the canvas untouched, so a broken frame looked like a
black photo with nothing to explain it. Poll the error queue once per frame and
raise an error the editor can show.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
The finish shader gained a sampler3D for ICC soft proofing, but that sampler was
only assigned when proofing was on; unset it defaulted to unit 0, where the
graded image is bound, and WebGL rejects a draw whose samplers mix types on one
unit. Every frame then failed and photo after photo showed a black canvas with
no console error. Assign the proof sampler on every draw and bind a 1x1x1
placeholder while proofing is off.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
The editor decodes the copy of the proxy kept in IndexedDB before asking the
server, so one stale or truncated copy fails with Chrome's "The source image
could not be decoded." on every later visit. A failed decode now drops that
copy, refetches the current bytes and retries, and the orientation option falls
back to a plain decode if the decoder refuses it.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
The glowing dot beside "Luminary" is replaced by the brand mark, trimmed to
its bars and resized for the 20px header slot so the 1 MB master art is not
shipped to browsers.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
A DCP matrix describes the sensor, so a profile chosen for one frame belongs to
all camera-native raws from that body; the panel offers the bulk apply when the
library holds more photos than the one on screen.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
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>
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>
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>
The grid and filmstrip only ever showed the import thumbnail, so edits and
virtual copies looked untouched. Edited tiles now render client-side with the
same shader as the canvas, once each, from the small cached thumbnail. The
filmstrip also gains Cmd/Shift multi-select so Paste, Copy and Reset can act on
several photos from the toolbar or the right-click menu.
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>
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>
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>
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>
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>
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>
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>