feat(admin): Convert dialog in the Library for JPEG, TIFF-16 or linear DNG
Owner review 2, R7 asks for mass conversion after import on the web panel too, with what happens to the originals chosen at every run. The Library's mass bar gets Convert… for the selection (every sequence after Select all without a filter, else at most a thousand ids, the same rule as Reorganize, now one helper). The dialog (convert.js) offers the format (linear DNG, the archival choice, first), the JPEG quality (shown for JPEG only, 1-100, checked on the field) and the mode, Replace or New sequence, never preselected, each tooltip saying what happens to the originals. Every change asks POST /archive/convert for a dry run, one request at a time and debounced while typing; the table shows per sequence the photos converted, the photos left as they are with why (what blocks the whole sequence first), and the size before and after, then the totals and the server's space line. While no mode is chosen the table is planned as New sequence (what converts does not depend on the mode) and Apply waits; choosing Replace plans again, since the fingerprint names the mode. Apply confirms Replace by typing the localised word, New sequence with a plain confirmation, sends the shown plan's fingerprint back and links the queued job; plan_changed, not_enough_space and nothing_to_convert plan again. Server refusals land on the field they name. The trash says what Restore does to a replaced entry (the originals swap back while their conversions are unchanged) and toasts it; the audit entry archive_converted reads as a sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 2a09572e3e67ef95a931333c35cd3bb1e818db71) (cherry picked from commit 1d71a18fa112a7cb39e3e7ced7d7234230eb4453)
This commit is contained in:
1 parent
0e52929274
commit
2143a093a2
11 files changed
+863
-27
No files matched your search
@@ -9,6 +9,7 @@
|
||||
<data name="Admin.About.Title" xml:space="preserve"><value>Chronos Server</value></data>
|
||||
<data name="Admin.About.Uptime" xml:space="preserve"><value>Running for</value></data>
|
||||
<data name="Admin.About.Version" xml:space="preserve"><value>Version</value></data>
|
||||
<data name="Admin.Activity.ArchiveConverted" xml:space="preserve"><value>{0} queued a conversion · {1}</value><comment>long</comment></data>
|
||||
<data name="Admin.Activity.ArchiveReorganized" xml:space="preserve"><value>{0} reorganized the archive · {1}</value><comment>long</comment></data>
|
||||
<data name="Admin.Activity.ArchiveSettings" xml:space="preserve"><value>{0} changed the archive layout</value><comment>long</comment></data>
|
||||
<data name="Admin.Activity.FramesDeleted" xml:space="preserve"><value>{0} deleted {1}</value><comment>long</comment></data>
|
||||
@@ -83,6 +84,62 @@
|
||||
<data name="Admin.Common.TypeToConfirm.Tip" xml:space="preserve"><value>Type the name exactly as shown to confirm</value></data>
|
||||
<data name="Admin.Common.TypeWord.Tip" xml:space="preserve"><value>Type the word exactly as shown; upper or lower case does not matter</value></data>
|
||||
<data name="Admin.Common.TypeWordFirst.Tip" xml:space="preserve"><value>Type the word above first</value></data>
|
||||
<data name="Admin.Convert.Action" xml:space="preserve"><value>Convert…</value></data>
|
||||
<data name="Admin.Convert.Action.Tip" xml:space="preserve"><value>Convert the photos of the selected sequences to JPEG, TIFF-16 or linear DNG; a preview shows every sequence first</value></data>
|
||||
<data name="Admin.Convert.Apply" xml:space="preserve"><value>Convert…</value></data>
|
||||
<data name="Admin.Convert.Apply.Tip" xml:space="preserve"><value>Convert as the preview shows; a confirmation comes first</value></data>
|
||||
<data name="Admin.Convert.Cancel.Tip" xml:space="preserve"><value>Close without converting anything</value></data>
|
||||
<data name="Admin.Convert.ChooseMode" xml:space="preserve"><value>Choose Replace or New sequence to convert.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.ChooseMode.Tip" xml:space="preserve"><value>Choose Replace or New sequence first</value></data>
|
||||
<data name="Admin.Convert.Column.Converted" xml:space="preserve"><value>Converted</value></data>
|
||||
<data name="Admin.Convert.Column.Sequence" xml:space="preserve"><value>Sequence</value></data>
|
||||
<data name="Admin.Convert.Column.Size" xml:space="preserve"><value>Size</value></data>
|
||||
<data name="Admin.Convert.Column.Unchanged" xml:space="preserve"><value>Unchanged</value></data>
|
||||
<data name="Admin.Convert.Confirm.New" xml:space="preserve"><value>Convert</value></data>
|
||||
<data name="Admin.Convert.Confirm.New.Tip" xml:space="preserve"><value>Queue the job that converts the photos into new sequences, each conversion verified; the originals are not touched</value></data>
|
||||
<data name="Admin.Convert.Confirm.Replace" xml:space="preserve"><value>Replace</value></data>
|
||||
<data name="Admin.Convert.Confirm.Replace.Tip" xml:space="preserve"><value>Queue the job that converts the photos, verifies each conversion and moves the originals to the trash</value></data>
|
||||
<data name="Admin.Convert.ConfirmNew.one" xml:space="preserve"><value>{0} photo is converted into a copy in a new sequence; the original stays as it is.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.ConfirmNew.other" xml:space="preserve"><value>{0} photos are converted into copies in a new sequence beside each one; the originals stay as they are.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.ConfirmNewTitle" xml:space="preserve"><value>Convert to {0} in new sequences?</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.ConfirmReplace.one" xml:space="preserve"><value>{0} photo in {1} is replaced by its conversion; the original goes to the trash, restorable until it is emptied.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.ConfirmReplace.other" xml:space="preserve"><value>{0} photos in {1} are replaced by their conversions; the originals go to the trash, restorable until it is emptied.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.ConfirmReplaceTitle" xml:space="preserve"><value>Replace the originals with {0}?</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.Format" xml:space="preserve"><value>Format</value></data>
|
||||
<data name="Admin.Convert.Format.Jpeg" xml:space="preserve"><value>JPEG</value><comment>invariant: a file format's name</comment></data>
|
||||
<data name="Admin.Convert.Format.Jpeg.Tip" xml:space="preserve"><value>8-bit JPEG with full colour detail at the quality set beside: the smallest files, opened by every program</value></data>
|
||||
<data name="Admin.Convert.Format.LinearDng" xml:space="preserve"><value>Linear DNG</value></data>
|
||||
<data name="Admin.Convert.Format.LinearDng.Tip" xml:space="preserve"><value>16-bit linear DNG compressed without loss: the archival choice, opened by raw editors</value></data>
|
||||
<data name="Admin.Convert.Format.Tiff16" xml:space="preserve"><value>TIFF-16</value><comment>invariant: a file format's name</comment></data>
|
||||
<data name="Admin.Convert.Format.Tiff16.Tip" xml:space="preserve"><value>16-bit sRGB TIFF compressed without loss: large files that keep every tone for editing</value></data>
|
||||
<data name="Admin.Convert.Gone" xml:space="preserve"><value>A selected sequence is no longer in the archive; close and select again.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.Mode" xml:space="preserve"><value>Mode</value></data>
|
||||
<data name="Admin.Convert.Mode.NewSequence" xml:space="preserve"><value>New sequence</value></data>
|
||||
<data name="Admin.Convert.Mode.NewSequence.Tip" xml:space="preserve"><value>The converted copies go into a new sequence beside each one; the originals and their sequence stay exactly as they are</value></data>
|
||||
<data name="Admin.Convert.Mode.Replace" xml:space="preserve"><value>Replace</value></data>
|
||||
<data name="Admin.Convert.Mode.Replace.Tip" xml:space="preserve"><value>The converted files become the sequence's photos; the originals go to the archive's trash, restorable until it is emptied</value></data>
|
||||
<data name="Admin.Convert.NoSpace.Tip" xml:space="preserve"><value>Free some space on the archive's volume first</value></data>
|
||||
<data name="Admin.Convert.Nothing.Tip" xml:space="preserve"><value>Nothing in the preview converts</value></data>
|
||||
<data name="Admin.Convert.NothingToConvert" xml:space="preserve"><value>Nothing to convert: every photo stays as it is, for the reasons shown.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.OpenJob" xml:space="preserve"><value>Open job</value></data>
|
||||
<data name="Admin.Convert.OpenJob.Tip" xml:space="preserve"><value>Show the job and its log on the Jobs page</value></data>
|
||||
<data name="Admin.Convert.PlanItem" xml:space="preserve"><value>{0} · {1} · {2}</value><comment>invariant; a sequence's title, the photos it converts, and their size before and after</comment></data>
|
||||
<data name="Admin.Convert.Planning" xml:space="preserve"><value>Planning…</value></data>
|
||||
<data name="Admin.Convert.Preview" xml:space="preserve"><value>Preview</value></data>
|
||||
<data name="Admin.Convert.Preview.Tip" xml:space="preserve"><value>What each sequence converts and leaves as it is, with the size before and after (an estimate); nothing has changed yet</value></data>
|
||||
<data name="Admin.Convert.Quality" xml:space="preserve"><value>Quality</value></data>
|
||||
<data name="Admin.Convert.Quality.Tip" xml:space="preserve"><value>JPEG quality from 1 to 100; 95 keeps fine detail, lower values make smaller files</value></data>
|
||||
<data name="Admin.Convert.QualityRange" xml:space="preserve"><value>Write a whole number from 1 to 100.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.Queued" xml:space="preserve"><value>Conversion queued.</value></data>
|
||||
<data name="Admin.Convert.ReplaceWord" xml:space="preserve"><value>replace</value><comment>the word typed to confirm replacing the originals, lower case</comment></data>
|
||||
<data name="Admin.Convert.Size.Tip" xml:space="preserve"><value>Size of the photos converted now, then the estimate after</value></data>
|
||||
<data name="Admin.Convert.SizeChange" xml:space="preserve"><value>{0} → {1}</value><comment>invariant; a size before and the estimated size after</comment></data>
|
||||
<data name="Admin.Convert.SkippedPhotos" xml:space="preserve"><value>{0}: {1}</value><comment>long: a photo count, then why those photos stay as they are</comment></data>
|
||||
<data name="Admin.Convert.Title.one" xml:space="preserve"><value>Convert {0} sequence</value></data>
|
||||
<data name="Admin.Convert.Title.other" xml:space="preserve"><value>Convert {0} sequences</value></data>
|
||||
<data name="Admin.Convert.TitleAll" xml:space="preserve"><value>Convert all sequences</value></data>
|
||||
<data name="Admin.Convert.TooMany" xml:space="preserve"><value>Convert takes at most {0} sequences at once, or every sequence: clear the filters and select all.</value><comment>long</comment></data>
|
||||
<data name="Admin.Convert.Totals" xml:space="preserve"><value>Sequences converted: {0} · photos: {1} · unchanged: {2} · size: {3} → {4}</value><comment>long</comment></data>
|
||||
<data name="Admin.Dashboard.Activity" xml:space="preserve"><value>Recent activity</value></data>
|
||||
<data name="Admin.Dashboard.AllLogs" xml:space="preserve"><value>All logs</value></data>
|
||||
<data name="Admin.Dashboard.AllLogs.Tip" xml:space="preserve"><value>Open the audit log</value></data>
|
||||
@@ -345,6 +402,7 @@
|
||||
<data name="Admin.Login.SignIn.Tip" xml:space="preserve"><value>Sign in to administer this server</value></data>
|
||||
<data name="Admin.Login.User" xml:space="preserve"><value>User</value></data>
|
||||
<data name="Admin.Login.User.Tip" xml:space="preserve"><value>Your user name on this server</value></data>
|
||||
<data name="Admin.Logs.Action.ArchiveConverted" xml:space="preserve"><value>Photos converted</value></data>
|
||||
<data name="Admin.Logs.Action.ArchiveReorganized" xml:space="preserve"><value>Archive reorganized</value></data>
|
||||
<data name="Admin.Logs.Action.ArchiveSettings" xml:space="preserve"><value>Archive layout</value></data>
|
||||
<data name="Admin.Logs.Action.FramesDeleted" xml:space="preserve"><value>Photos deleted</value></data>
|
||||
@@ -823,9 +881,12 @@
|
||||
<data name="Admin.Trash.PlanItem" xml:space="preserve"><value>{0} · {1} · {2}</value><comment>invariant; an entry's kind, title and size</comment></data>
|
||||
<data name="Admin.Trash.Restore" xml:space="preserve"><value>Restore</value></data>
|
||||
<data name="Admin.Trash.RestorePhotos.Tip" xml:space="preserve"><value>Put the photos back into their sequence (a new one if it is gone); each is checked against its SHA-256 first</value></data>
|
||||
<data name="Admin.Trash.RestoreReplaced.Tip" xml:space="preserve"><value>Put the originals back in place of their conversions while those are unchanged (the conversions go to the trash), else into a new sequence; each is checked against its SHA-256 first</value></data>
|
||||
<data name="Admin.Trash.RestoreSequence.Tip" xml:space="preserve"><value>Move the sequence's folder back into the library as it is (next to its old place if that is taken); its photos are not hash-checked: Verify does that</value></data>
|
||||
<data name="Admin.Trash.RestoredNew.one" xml:space="preserve"><value>{0} photo restored into a new sequence.</value><comment>long</comment></data>
|
||||
<data name="Admin.Trash.RestoredNew.other" xml:space="preserve"><value>{0} photos restored into a new sequence.</value><comment>long</comment></data>
|
||||
<data name="Admin.Trash.RestoredOriginals.one" xml:space="preserve"><value>{0} original is back in {1}; its conversion is in the trash.</value><comment>long</comment></data>
|
||||
<data name="Admin.Trash.RestoredOriginals.other" xml:space="preserve"><value>{0} originals are back in {1}; their conversions are in the trash.</value><comment>long</comment></data>
|
||||
<data name="Admin.Trash.RestoredPhotos.one" xml:space="preserve"><value>{0} photo is back in {1}.</value><comment>long</comment></data>
|
||||
<data name="Admin.Trash.RestoredPhotos.other" xml:space="preserve"><value>{0} photos are back in {1}.</value><comment>long</comment></data>
|
||||
<data name="Admin.Trash.RestoredSequence" xml:space="preserve"><value>{0} is back in the library.</value><comment>long</comment></data>
|
||||
|
||||
Reference in new issue
Block a user