feat(archive): convert sequences to JPEG, TIFF-16 or linear DNG after import
Owner review 2, R7 asks for mass conversion after import on the web panel and the desktop, with a choice at every run between Replace and New sequence. This is the engine and the server API both UIs build on. - Core/Conversion: ConvertOptions (JPEG 4:4:4 at quality 1-100, default 95; TIFF-16 sRGB Deflate with the predictor; linear DNG, the archival choice; converted names keep the stem and take the target's extension in the old one's case). FrameConverter decodes at the native tier only, encodes with the in-house writers, writes Exif from the sidecar (capture time to the tick, offset, exposure) and the original (camera, serial, lens, modes, GPS), hashes the bytes as made, writes atomically and verifies: read back, the metadata again, a decode by the server's decoders. ExifWriter now writes the exposure program, metering mode, flash and white balance. ConvertPlanner: convertible frames, skips with reasons, size estimates per pixel, the plan's space and fingerprint. - FrameTrash.ReplaceAsync swaps the files of frames in place: same ids and indices, the old files and their XMP companions into one Replaced trash entry (records, replacement hashes, a copy of analysis.json), tombstones aliasing old content to new, proxies of the swapped frames dropped, under .chronos/replace.pending.json, which the next writer undoes or completes. Restoring a Replaced entry swaps back while every converted frame is unchanged (the converted files become a Replaced entry in turn), else the originals come back as a new sequence. - MassConverter and JobKind.Convert (19): the dry run (busy, offline, unreadable, space against ArchiveServiceOptions.FreeSpace), stage A converting into staging/convert-<job>/ in parallel with each source re-hashed and each staged file appended to journal/convert-<job>.staged, stage B per sequence all or nothing under the lease at the planned frames version: Replace, or a new sequence through the ingest with the source's tags, rating, notes and project. Resumes keep verified staged files; a sequence changed, busy or with a failed photo is left as it was and fails the job at the end, the journal kept for a retry. - POST /api/v1/archive/convert: dry run with the plan, its space line and fingerprint, or a 202 convert job; formats the server cannot read at full resolution are skipped as convert_on_pc; validated, audited (archive_converted), sequenceChanged converted/created. The server measures the space volume for the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 809210d924cfc3f597ecdea26106fb3ff62d3762) (cherry picked from commit e13d4c0bb1bd9441933b6f3e5b6220e865a7228c)
This commit is contained in:
1 parent
d518e87733
commit
0e52929274
34 files changed
+3519
-32
No files matched your search
@@ -35,6 +35,19 @@
|
||||
<data name="Archive.Confirm.Remove" xml:space="preserve"><value>Remove row</value></data>
|
||||
<data name="Archive.Confirm.RemoveHeading" xml:space="preserve"><value>Remove {0} from the index?</value><comment>long</comment></data>
|
||||
<data name="Archive.Confirm.RemoveMessage" xml:space="preserve"><value>Its sidecar is gone. Only the index row is removed; no file is deleted.</value><comment>long</comment></data>
|
||||
<data name="Archive.Convert.Blocked.Busy" xml:space="preserve"><value>A job is working on this sequence; convert it once the job is done.</value><comment>long: why a sequence is not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Blocked.FramesChanged" xml:space="preserve"><value>The sequence changed after the plan; review the plan again.</value><comment>long: why a sequence is not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Blocked.Offline" xml:space="preserve"><value>The archive is offline or read-only.</value><comment>long: why a sequence is not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Blocked.Unreadable" xml:space="preserve"><value>The sequence file cannot be read.</value><comment>long: why a sequence is not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.Missing" xml:space="preserve"><value>Missing photos stay as they are.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.NoNativeDecoder" xml:space="preserve"><value>Photos of a format this computer cannot read at full resolution stay as they are.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.PreviewOnly" xml:space="preserve"><value>Photos read only from their embedded preview here stay as they are.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.SameFormat" xml:space="preserve"><value>Photos already in this format stay as they are.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.Undecodable" xml:space="preserve"><value>Unreadable photos stay as they are.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.Unhashed" xml:space="preserve"><value>Photos never verified stay as they are; verify the sequence first.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Space" xml:space="preserve"><value>Needs {0}, free {1}</value><comment>long: free space line of a conversion dry run; {0} and {1} sizes</comment></data>
|
||||
<data name="Archive.Convert.SpaceShort" xml:space="preserve"><value>Needs {0}, only {1} free: free some space first.</value><comment>long: free space line of a conversion dry run; {0} and {1} sizes</comment></data>
|
||||
<data name="Archive.Convert.SpaceUnknown" xml:space="preserve"><value>Needs {0}; the free space cannot be measured.</value><comment>long: free space line of a conversion dry run; {0} size</comment></data>
|
||||
<data name="Archive.Copy.Title" xml:space="preserve"><value>Folder to copy into the archive</value><comment>long</comment></data>
|
||||
<data name="Archive.Delete.Action" xml:space="preserve"><value>Move to trash</value></data>
|
||||
<data name="Archive.Delete.Blocked" xml:space="preserve"><value>Not moved: {0} · {1}</value><comment>long</comment></data>
|
||||
@@ -80,6 +93,9 @@
|
||||
<data name="Archive.Duplicates.Title" xml:space="preserve"><value>Duplicates</value></data>
|
||||
<data name="Archive.Empty" xml:space="preserve"><value>No archive yet</value></data>
|
||||
<data name="Archive.Error.Busy" xml:space="preserve"><value>Another Chronos ({0}) is writing here. Try again shortly.</value><comment>long: error sentence</comment></data>
|
||||
<data name="Archive.Error.ConvertKept.one" xml:space="preserve"><value>{0:N0} sequence was not converted as planned; the job log says why.</value><comment>long: error sentence of a conversion job</comment></data>
|
||||
<data name="Archive.Error.ConvertKept.other" xml:space="preserve"><value>{0:N0} sequences were not converted as planned; the job log says why.</value><comment>long: error sentence of a conversion job</comment></data>
|
||||
<data name="Archive.Error.ConvertSpace" xml:space="preserve"><value>The conversion needs {0} free on the archive's volume, and {1} are free.</value><comment>long: error sentence of a conversion job; {0} and {1} sizes</comment></data>
|
||||
<data name="Archive.Error.CopyMismatch" xml:space="preserve"><value>The copy of {0} does not match the original.</value><comment>long: error sentence</comment></data>
|
||||
<data name="Archive.Error.DuplicateLost" xml:space="preserve"><value>{0} could not be added to the sequence.</value><comment>long: error sentence</comment></data>
|
||||
<data name="Archive.Error.InLibrary" xml:space="preserve"><value>{0} is already in the library.</value><comment>long: error sentence</comment></data>
|
||||
@@ -137,6 +153,13 @@
|
||||
<data name="Archive.Log.AuditKept" xml:space="preserve"><value>Audit log kept in full</value><comment>long: job log line; a clean-up step whose age limit is 0</comment></data>
|
||||
<data name="Archive.Log.AuditPurged" xml:space="preserve"><value>Audit entries removed: {0}</value><comment>long: job log line</comment></data>
|
||||
<data name="Archive.Log.BackupDone" xml:space="preserve"><value>Index copied to {0} ({1}); copies kept: {2}</value><comment>long: job log line; {0} file path; {1} size, e.g. "12.4 MB"</comment></data>
|
||||
<data name="Archive.Log.ConvertBlocked" xml:space="preserve"><value>Left as it was, busy or unreadable: {0}</value><comment>long: job log line; {0} sequence title</comment></data>
|
||||
<data name="Archive.Log.ConvertChanged" xml:space="preserve"><value>Left as it was, changed after the plan: {0}</value><comment>long: job log line; {0} sequence title</comment></data>
|
||||
<data name="Archive.Log.ConvertDone" xml:space="preserve"><value>Sequences converted: {0}, new sequences: {1}, photos: {2}</value><comment>long: job log line of a conversion</comment></data>
|
||||
<data name="Archive.Log.ConvertFailed" xml:space="preserve"><value>Left as it was, a photo could not be converted: {0}: {1}</value><comment>long: job log line; {0} sequence title, {1} the reason</comment></data>
|
||||
<data name="Archive.Log.ConvertNothing" xml:space="preserve"><value>Nothing to convert: {0}</value><comment>long: job log line; {0} sequence title</comment></data>
|
||||
<data name="Archive.Log.Converted" xml:space="preserve"><value>{0}: photos replaced by their conversion: {1}</value><comment>long: job log line; {0} sequence title, {1} photos</comment></data>
|
||||
<data name="Archive.Log.ConvertedNew" xml:space="preserve"><value>{0}: photos converted into a new sequence: {1}</value><comment>long: job log line; {0} sequence title, {1} photos</comment></data>
|
||||
<data name="Archive.Log.DryRun" xml:space="preserve"><value>Dry run: nothing was changed.</value><comment>long: job log line</comment></data>
|
||||
<data name="Archive.Log.DuplicateGroup" xml:space="preserve"><value>Extra copies of {0}: {1}</value><comment>long: job log line; {0} path of the first photo of a group sharing one hash</comment></data>
|
||||
<data name="Archive.Log.DuplicatesDone" xml:space="preserve"><value>Duplicate groups: {0}, extra copies: {1}</value><comment>long: job log line</comment></data>
|
||||
|
||||
Reference in new issue
Block a user