feat(editor): visual crop, rotate/mirror/flip/straighten, colour looks (owner review 1 phase 4) (#26)
CI / Build and test (push) Successful in 8m19s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 12m9s
CI / PostgreSQL 16 integration (push) Successful in 7m49s
CI / PostgreSQL 17 integration (push) Successful in 7m19s
CI / Docker image (push) Successful in 46s
Release / Server image (push) Successful in 1m14s
CI / Build and test (push) Successful in 8m19s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 12m9s
CI / PostgreSQL 16 integration (push) Successful in 7m49s
CI / PostgreSQL 17 integration (push) Successful in 7m19s
CI / Docker image (push) Successful in 46s
Release / Server image (push) Successful in 1m14s
Owner review 1 R5 + R6. Camera rotation, mirror, flip, straighten and crop handles locked to the output; an Exposure Look group; Export output size ("proportions win"); settings format 2 with older-node gates. Also fixes project text and hashes differing between Windows and Linux.
Closes #19
Closes #20
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #26.
This commit is contained in:
1 parent
db389a54f2
commit
188b2c2e55
355 files changed
+10549
-1061
No files matched your search
+95
-9
@@ -972,7 +972,9 @@ Results → `analysis.json` + compact summary in DB; charts in the Edit section
|
||||
- Deflicker window (4× flicker period), region deflicker when horizon confidence is high,
|
||||
holy-grail transition length (half the typical distance between exposure steps), WB
|
||||
smoothing, stabilization on/off (measured shake > 0.3 px) with crop cost, crop/aspect
|
||||
suggestions from subject placement, output resolution cap from source/preview size and
|
||||
suggestions from subject placement (on the view as shown: the aspect and the horizon's
|
||||
place follow a turn, flip or straighten; amended 2026-11-04, owner review 1 R6), output
|
||||
resolution cap from source/preview size and
|
||||
codec level limits, quality profile.
|
||||
- Auto-generated **sequence presets** ("Night sky — 4K 10-bit HEVC 24 fps, deflicker 41,
|
||||
stabilise", "Holy grail sunset — 4K HEVC 30 fps, transitions 18", "Construction cam —
|
||||
@@ -1010,6 +1012,20 @@ stabilization into one affine), non-linear time remap (Fritsch–Carlson monoton
|
||||
temporal stacking (median, progressive max with decay), geometry stage, codec level limits,
|
||||
disk spill, cancellation semantics.
|
||||
|
||||
Orientation and look (amended 2026-11-04, owner review 1 R5/R6). The project's quarter
|
||||
turns, mirror (left↔right), flip (top↔bottom) and straighten (±15°, positive clockwise)
|
||||
apply after Exif orientation, in that order, inside the one warp between stabilisation and
|
||||
the virtual camera; pixels are never turned after decode, so the stabiliser, the sky mask
|
||||
and the horizon stay in the raw frame. The crop and the keyframe centres are normalised in
|
||||
the view frame: oriented, straightened and zoomed just enough that no corner shows (cover
|
||||
zoom cos|θ| + max(W/H, H/W)·sin|θ|, about 1.43× at 15° on 16:9, folded into the decode
|
||||
size; never stored). The look (None, Mono, Sepia, Warm, Cool, Vivid, Muted, Fade, with a
|
||||
strength) is a built-in linear-light matrix, contrast power and lift, applied once per
|
||||
output frame after stacking, interpolation and motion blur and before the highlight knee;
|
||||
measuring, flow and stacking never see it. The render, the server, render nodes and the
|
||||
editor preview call the same Core code (`RenderGeometry`, `RenderSize`, `FrameFinish`), so
|
||||
they agree to the pixel. Library, filmstrip and admin thumbnails stay the raw photos.
|
||||
|
||||
### 11.3 Encoders and containers
|
||||
|
||||
| Output | Client (Windows) | Server (Linux/Windows) |
|
||||
@@ -1027,12 +1043,20 @@ GOP, B-frames, profile/level via `ICodecAPI`. Capability discovery (`MFTEnumEx`
|
||||
flag, friendly names, DXGI adapter) is shown in Settings › Rendering and used to hide
|
||||
unavailable codecs.
|
||||
|
||||
### 11.4 Presets
|
||||
### 11.4 Presets (amended 2026-11-04, owner review 1 R5)
|
||||
|
||||
Presets bind resolution, aspect, codec, profile, bit depth, fps, bitrate (≈0.10 bpp/frame
|
||||
Presets bind a resolution class, codec, profile, bit depth, fps, bitrate (≈0.10 bpp/frame
|
||||
H.264, 0.07 HEVC, 0.05 AV1; night-sky content is the most demanding), GOP and container.
|
||||
Editing any value flips the name to "Custom"; matching values restore the preset name.
|
||||
|
||||
The chosen proportions win (amended 2026-11-04, owner review 1 R5): when the project's
|
||||
aspect (manual, or the Auto's advised value) is not "source", a fixed-size preset is a box
|
||||
and the aspect is fitted inside it, the box turned to portrait for a ratio below 1: 4K at
|
||||
9:16 = 2160×3840, 1:1 = 2160×2160, 4:5 = 2160×2700, 21:9 = 3840×1646; 1080p at 9:16 =
|
||||
1080×1920. "source" keeps the preset's own size. Sizes stay even for codecs that need it,
|
||||
then the encoder's limits cap them, read as long edge × short edge. The preset's name does
|
||||
not change; the Export step shows the size rendered as *Output size*.
|
||||
|
||||
Built-in presets: 8K UHD 10-bit HEVC archive · 4K UHD 10-bit HEVC archive · 4K UHD HEVC ·
|
||||
4K UHD H.264 compatible · DCI 4K HEVC 24 fps · Cinema 21:9 4K HEVC 24 fps · 4K 60 fps ·
|
||||
1440p H.264 · 1080p H.264 share · 1080p 60 · 1080×1920 vertical social · 1080×1350 4:5 ·
|
||||
@@ -1141,7 +1165,7 @@ player smoke test on Windows CI.
|
||||
sequence opens the same way, as a project whose home is the server, when the server keeps
|
||||
projects and the account may edit; otherwise it opens with proxies (§14.5).
|
||||
|
||||
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor"; amended 2026-10-26, R8)
|
||||
### 12.3 Edit (amended 2026-10-16, R7; formerly "Sequence editor"; amended 2026-10-26, R8; amended 2026-11-04, owner review 1 R5/R6)
|
||||
|
||||
```
|
||||
│ ← Harbour sunset ▾ · [Main ● In sync ▾] · 3,600 frames · Canon EOS R5 · 2 s · 2 h 00 m [Analyse] [Optimise all] [Render ▾] │
|
||||
@@ -1176,9 +1200,11 @@ player smoke test on Windows CI.
|
||||
analyses with the step that deals with it; light, flicker, exposure steps received,
|
||||
shake and flagged frames; Analyse), **Frames** (virtualized table: index, time,
|
||||
exposure, ISO, f, size, tier, flags; exclude/include; set hero; the findings about
|
||||
single frames), **Exposure** (deflicker, regions, holy-grail transitions, WB) with
|
||||
luminance/waveform charts, **Motion** (blur, flow quality, stabilization) with shake
|
||||
path chart, **Camera** (crop, aspect, virtual camera keyframes with a spline editor),
|
||||
single frames), **Exposure** (deflicker, regions, holy-grail transitions, WB, look:
|
||||
filter and strength) with luminance/waveform charts, **Motion** (blur, flow quality,
|
||||
stabilization) with shake path chart, **Camera** (aspect, rotation, mirror, flip,
|
||||
straighten, the crop drawn on the preview and locked to the aspect, virtual camera
|
||||
keyframes with a spline editor; amended 2026-11-04, owner review 1 R5/R6),
|
||||
**Time** (fps, timing mode, remap curve, fit-to-duration, plan chart), **Stack**
|
||||
(median/max, trail length; optional), **Export** (preset, values, output name, batch
|
||||
list, render history, sponsor slot — Phase 9 only).
|
||||
@@ -1195,12 +1221,53 @@ player smoke test on Windows CI.
|
||||
current deep analysis or one waits, runs or is paused; else on Frames.
|
||||
- Preview always on top with tools: zoom/pan (1:1 shows raw pixels), wipe compare
|
||||
original/corrected, motion-vector overlay, region boundary, crop mask ("what I lose" vs
|
||||
"how it will look"), full-screen native-resolution window with collapsible shot data.
|
||||
"how it will look"; on the Camera step it is on by default and edits the crop, below),
|
||||
full-screen native-resolution window with collapsible shot data.
|
||||
- Every deducible control shows Auto/manual state (§10.4); every control has a tooltip
|
||||
with the reason and the effect of moving it the wrong way.
|
||||
- While a job runs on this sequence, settings that would change the rules mid-render are
|
||||
disabled; viewing tools stay live.
|
||||
|
||||
Framing and look (amended 2026-11-04, owner review 1 R5/R6; §11.2, §11.4).
|
||||
- The crop is edited on the preview. On the Camera step the preview shows the whole view
|
||||
frame (turned and straightened, without stabilisation or camera moves), so the box is the
|
||||
stored crop, always locked to the output's aspect. It has 8 handles while the project is
|
||||
editable (not read-only, of a newer format or busy, and the preview already showing the
|
||||
current orientation): a drag inside moves it, a corner resizes from the opposite corner,
|
||||
an edge from the opposite edge, Alt about the centre; at least 10 % of the largest box,
|
||||
always inside the frame; rule-of-thirds lines while dragging; Esc cancels; one drag is one
|
||||
undo step. A press on the box or Enter selects it (an Accent ring): arrows move it 1 %,
|
||||
Shift+arrows 10 %, + and − resize it 2 %, and Esc gives the arrows back to the frames.
|
||||
Inside a box that spans the view both ways a press pans while zoomed; the middle button
|
||||
always pans. Screen readers hear the crop's place and size. An aspect change refits the
|
||||
box about its centre.
|
||||
- Camera rows: Aspect; Rotation (Rotate left, Rotate right and the angle, each press a
|
||||
quarter turn as the picture is seen, also under a mirror); Mirror and Flip (switches);
|
||||
Straighten (−15…15° by 0.1°, a fine grid on the preview while dragged or focused); Crop
|
||||
size (10–100 % of the largest box), Crop X and Crop Y (the box's place in the frame's
|
||||
slack); the keyframes. A turn, mirror or flip keeps the content: the crop, the keyframe
|
||||
centres and roll follow it and a non-square aspect transposes (16:9 ↔ 9:16); each press
|
||||
is one undo step. *Reset framing* clears the crop, the offsets and the orientation,
|
||||
undoing the presses so keyframes and aspect stay on their content; disabled when nothing
|
||||
is set. The crop-margin and Offset X/Y rows are gone: a crop placed by offsets in an
|
||||
earlier release renders as before and becomes a box at its first edit.
|
||||
- Exposure ends with the Look group: Filter (None, Mono, Sepia, Warm, Cool, Vivid, Muted,
|
||||
Fade) and Strength (1–100 %, n/a with None). The look shows on the corrected side of the
|
||||
compare wipe and never triggers a new measure.
|
||||
- Export: Width and Height edit the preset's box; *Output size* shows the size rendered
|
||||
(§11.4), marked *capped* when the encoder shrinks it.
|
||||
- Settings format: a project is written as settings format 2 only while it uses a turn,
|
||||
mirror, flip, straighten or a look other than None; otherwise it stays format 1, text and
|
||||
hash unchanged. An earlier Chronos opens a format-2 project read-only. A merge takes a
|
||||
turn or mirror on one side and a framing change on the other (crop, keyframes, offsets,
|
||||
aspect) as one conflict; straighten and the crop merge apart. A server that announces an
|
||||
older settings format (`server/info`, §14.3) is not sent what it would get wrong: *Sync*
|
||||
(push and pull), *Send and render*, the Library's *Render* of a remote card and a remote
|
||||
editor's save are held, saying *This server's Chronos cannot read these settings; update
|
||||
it*; a local render of a workspace project is not held. Proportions win (§11.4) changes
|
||||
no stored format: a 9:16 project on a 4K preset stays format 1, but its server render
|
||||
needs a server and a render node of this release (§14.7).
|
||||
|
||||
Workspace (amended 2026-10-26, R8; §4.4, §7). Edit opens a sequence of this PC's archive only
|
||||
as a project of the workspace, and never writes into the library; a capture (sample data)
|
||||
keeps editing the library. A server sequence opens as a project of the workspace too when its
|
||||
@@ -1783,7 +1850,7 @@ Advanced, §12.8).
|
||||
```
|
||||
POST /api/v1/auth/login {username,password,clientName} → {token,user,mustChangePassword}
|
||||
POST /api/v1/auth/logout · POST /auth/password · GET /auth/me
|
||||
GET /api/v1/server/info name, version, apiVersion, capabilities, tlsFingerprint, formats, limits, extensions
|
||||
GET /api/v1/server/info name, version, apiVersion, capabilities, tlsFingerprint, formats, limits, extensions, settingsFormat
|
||||
GET /health
|
||||
|
||||
GET /api/v1/users · POST · GET/PATCH/DELETE /users/{id} · POST /users/{id}/reset-password (admin)
|
||||
@@ -1977,6 +2044,16 @@ original a conversion replaced in the target sequence is tombstoned too; sent wi
|
||||
it files nothing and its completion answers the frame that holds its conversion (amended
|
||||
2026-10-26, R7).
|
||||
|
||||
Settings format (amended 2026-11-04, owner review 1 R5/R6; §12.3, §14.7): `server/info`
|
||||
gives `settingsFormat`, the highest project settings format the server reads (2 in this
|
||||
release; absent from an older server, which reads 1). The server checks no settings: a
|
||||
project push of a higher format answers 422 `newer_format` as before, and a render job whose
|
||||
settings it cannot read fails with *These settings need a newer Chronos*. A render job
|
||||
is sized from its resolved preset box adapted to the sequence's settings (§11.4) and carries
|
||||
the settings format it needs (`requiredSettingsFormat`: format 2 for a format-2 project or
|
||||
when the adapted size differs from the preset's fixed size); clients and servers that do not
|
||||
know the members ignore them.
|
||||
|
||||
Schedules (amended 2026-10-26, R10; ManageArchive, every change audited): `PUT` and
|
||||
`PATCH` change the fields given; an invalid field is 400 `invalid_schedule` with the field
|
||||
as details (`name`, `recurrence`, `parameters.percent`…); a system schedule is never
|
||||
@@ -2338,6 +2415,14 @@ get that version's settings (or the job's own portable settings) placed on the s
|
||||
frames; a node gets them placed on the frames its claim lists, read as one frames version.
|
||||
The render records the project and the version. Jobs without them render as before.
|
||||
|
||||
Settings format (amended 2026-11-04, owner review 1 R5/R6; §14.3). A node registers the
|
||||
highest settings format it reads (`settingsFormat`; a node of an earlier release reads as 1)
|
||||
and is never given a job that needs more: the claim and the wait for a node both route the
|
||||
job again from the sequence's settings of the moment (size adapted, format required), and a
|
||||
job no online node can take goes to the server's managed fallback instead of waiting. A node
|
||||
of this release reads its encoder limits as long edge × short edge, so a 2160×3840 job fits a
|
||||
4096×2304 encoder; an older node is held to its limits as announced.
|
||||
|
||||
### 14.8 Admin web panel (`/admin`, vanilla HTML/CSS/JS, ES modules, no build step, same API)
|
||||
|
||||
```
|
||||
@@ -3034,6 +3119,7 @@ questions asked and the answers; DECISIONS rows give the reasons.
|
||||
| 2026-10-26 | Owner review 2, R8 (phase 5b: server home) | §4.4, §7, §12.2, §12.3, §12.7, §14.3, §14.5, §14.7, §14.8 | A Chronos Server keeps its sequences' projects as a PC's archive does: `/api/v1/sequences/{sid}/projects` (list with Main made at the first read, create, rename, delete with the owner's, maker's or an admin's right, head, versions in size-capped pages, stored check, push with its outcome, frames and their stamp), the `projects` capability and `projectChanged`; settings written outside the projects become Main's version soon after, and a settings `PATCH` writes `project.json` under the lease; a sequence without photos keeps no projects; renders and render nodes take a project version's settings and record it; the admin panel's sequence page lists the projects (versions, Rename, Delete). The desktop opens a server sequence as a workspace project through its sign-in: *Open in workspace* on the Server screen and in Edit, proxies downloaded into the workspace (hash-checked, resumable), push and pull, conflicts, history and live state against the server, texts naming the server, renders and analyses on the server of the version it holds; an account without Edit and an older server keep *Open with proxies*. |
|
||||
| 2026-10-26 | Owner review 2, R8 (phase 5c: originals, local render, clean-up, Workspace settings) | §4.4, §5, §12.3, §12.7, §12.8, §14.3, §14.5, §14.6 | Originals in the workspace on request (*Open in workspace* › Originals, *Copy originals…*, *Proxies only…* behind a plan), copied from either home hash-checked and resumable, a frame whose original is missing keeping its proxy; media index format 2 and project file format 3 while originals are held; a project with originals renders on this PC (`workspace-render`, stored as 21) into `exports/` with the ledger `renders.json`, *Version on render* saving a version first, and sends its renders home (`workspace-send`, 22) with their project and version, idempotent by render id, refusals per render; render uploads take optional `projectId` and `projectVersionId`, checked against the sequence (422 `project_mismatch`); *Pause metered transfers* holds every transfer with a server, downloads and workspace copies and sends included; originals judged by their bytes against the home's frames, those it lacks kept in the workspace's trash; the clean-up of media in step with their home (*Clean after*, *Size limit*, the `workspace-cleanup` schedule) and the workspace's trash emptied only by *Empty…* (typed count, fingerprint); Remove local copy weighs unsent renders and originals; moving the workspace folder (`workspace-move`, 23) behind a plan, renamed on one drive or copied and verified across drives, journaled, resumable, the source kept until the switch, with *Resume*; Settings › Workspace complete (Folder with Move…, Size limit, Default media, Sync, Version on render, Kept versions, Clean after, Open project, Trash). |
|
||||
| 2026-11-04 | Owner review 3 (ports) | §12.7, §14.8, §14.9, §15, §19.6 | The public HTTP/HTTPS ports are server settings as well as variables (a variable locks them), applied at once; in a container the listening ports are locked to the template's; the admin panel's Network and TLS shows the container's ports, the public ports and the client address with Copy; clients read an address without scheme or port as port 8443 and report an address that answers as something else, never offering its certificate for trust; the Unraid template and compose gain *Public HTTP port*. |
|
||||
| 2026-11-04 | Owner review 1, R5/R6 (phase 4: visual crop, transforms, looks) | §10.3, §11.2, §11.4, §12.3, §14.3, §14.7 | The crop is edited on the preview with handles, always locked to the output aspect, in the view frame (turned, straightened); the chosen proportions win: a fixed-size preset is a box the aspect is fitted in (4K at 9:16 = 2160×3840), "source" keeps the preset, the preset name stays and *Output size* shows the result; the Camera step gains Rotation (quarter turns), Mirror, Flip, Straighten (±15°, automatic cover zoom), Crop size/X/Y and Reset framing, the crop-margin and offset rows go; a turn or mirror keeps the content (crop, keyframes, a transposed aspect); the Exposure step ends with a Look (eight built-in colour looks with a strength), applied after stacking and before the knee; one Core path for render, server, nodes and preview; settings format 2 written only when a transform or look is used, read-only in older builds; `server/info` and node registrations announce the settings format, and nothing an older server or node would get wrong is sent to it; the advisor works on the view as shown. |
|
||||
|
||||
## Appendix A — `CLAUDE.md` content (create verbatim in Phase 0, keep updated)
|
||||
|
||||
|
||||
Reference in new issue
Block a user