fix(convert): keep what the original holds and plan only what converts
Phase 4b review, codec findings. A Replace makes the converted file the photo, so a conversion must not lose what the original held, and the dry run must promise only what the job will do. - Linear DNG from a conversion is scene-referred: the pixels are stored in linear ProPhoto primaries (colours outside sRGB stay positive) and divided by the power of two that brings their peak under the white level (at most 4 stops), with BaselineExposure giving it back and ColorMatrix1/ForwardMatrix1 describing that space. Highlights a RAW develops above 1 and its wide-gamut colours now read back as written. Exports keep the clipped linear-sRGB DNG. - A conversion reads with the managed decoders first for every format they read natively (RAWs developed at float precision, as on the server) and with WIC only for what they cannot. A RAW only WIC's Raw Image Extension develops (8 bits) is refused for TIFF-16 and linear DNG and planned out as "eight_bit"; JPEG still converts it. Providers say so through IImageDecoderProvider.DevelopsRawAt8Bits. - The original's colour space is kept: a JPEG (APP2) or TIFF (tag 34675) carries its ICC profile, with the values unchanged; a linear DNG gets the values converted through a matrix/TRC profile; a gray profile converts to sRGB. Exif Adobe RGB (uncalibrated + R03) and HEIF nclx P3 get an in-house profile. A space nothing here can keep (CMYK, a lookup-table profile into a DNG, uncalibrated without R03, HDR nclx) is planned out as "color_profile". New in-house ICC parser/writer and header reader for JPEG, PNG, TIFF, HEIF/AVIF and WebP. - The planner asks every file, whatever tier was recorded (unknown before the light analysis, or by another host), with the conversion's decoders, headers only and eight at a time; a RAW the server cannot develop is "convert_on_pc" in the plan instead of failing its sequence. Photos a target cannot hold (a JPEG side above 65535, more samples than one buffer) are planned out as "too_large", and an overflow fails its photo rather than the job. - A photo that fails reads in the job log as one catalog sentence by cause (Archive.Convert.Failed.*), the file named once; the exception's English text goes to the diagnostics log only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0ca1e91ea09946d7a55f45695ee58e1a0ff5f779)
This commit is contained in:
1 parent
341fb77507
commit
f86a151a5d
26 files changed
+1755
-82
No files matched your search
+16
-1
@@ -43,22 +43,37 @@
|
||||
<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.Done.one" xml:space="preserve"><value>{0:N0} sequence converted</value></data>
|
||||
<data name="Archive.Convert.Done.other" xml:space="preserve"><value>{0:N0} sequences converted</value></data>
|
||||
<data name="Archive.Convert.Failed.Changed" xml:space="preserve"><value>The photo no longer matches the copy that was archived; verify the sequence.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.ColorProfile" xml:space="preserve"><value>Its colour profile can be neither kept nor converted in this format.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.EightBit" xml:space="preserve"><value>This computer develops this RAW at 8 bits only, too few for a 16-bit file; JPEG converts it.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.Full" xml:space="preserve"><value>The archive's disk is full.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.NoDecoder" xml:space="preserve"><value>No decoder on this computer reads it at full resolution.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.NotVerified" xml:space="preserve"><value>The converted file did not read back as it was written.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.Other" xml:space="preserve"><value>The converted file could not be made.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.PreviewOnly" xml:space="preserve"><value>This computer reads it only from its embedded preview: convert it on a PC that reads it at full resolution.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.TooLarge" xml:space="preserve"><value>It is larger than this format or the memory for one photo can hold.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Failed.Unreadable" xml:space="preserve"><value>The photo could not be decoded.</value><comment>long: why a photo was not converted, in the job log</comment></data>
|
||||
<data name="Archive.Convert.Format" xml:space="preserve"><value>Format</value></data>
|
||||
<data name="Archive.Convert.Heading.one" xml:space="preserve"><value>Convert {0:N0} sequence</value></data>
|
||||
<data name="Archive.Convert.Heading.other" xml:space="preserve"><value>Convert {0:N0} sequences</value></data>
|
||||
<data name="Archive.Convert.HeadingAll" xml:space="preserve"><value>Convert {0}</value><comment>long: dialog heading; {0} archive name</comment></data>
|
||||
<data name="Archive.Convert.Mode" xml:space="preserve"><value>Mode</value></data>
|
||||
<data name="Archive.Convert.NewSequence" xml:space="preserve"><value>New sequence</value></data>
|
||||
<data name="Archive.Convert.NotPlaced" xml:space="preserve"><value>The converted photos could not take their place. {0}</value><comment>long: job log; {0} why (one sentence)</comment></data>
|
||||
<data name="Archive.Convert.PhotoFailed" xml:space="preserve"><value>{0} could not be converted. {1}</value><comment>long: job log; {0} the photo's file, {1} why (one sentence)</comment></data>
|
||||
<data name="Archive.Convert.Quality" xml:space="preserve"><value>Quality</value></data>
|
||||
<data name="Archive.Convert.Replace" xml:space="preserve"><value>Replace</value></data>
|
||||
<data name="Archive.Convert.ReplaceHeading.one" xml:space="preserve"><value>Replace the photos of {0:N0} sequence?</value><comment>long</comment></data>
|
||||
<data name="Archive.Convert.ReplaceHeading.other" xml:space="preserve"><value>Replace the photos of {0:N0} sequences?</value><comment>long</comment></data>
|
||||
<data name="Archive.Convert.ReplaceMessage" xml:space="preserve"><value>{0} ({1}) are replaced by their conversion to {2}; the originals move to the archive's trash and can be restored until it is emptied.</value><comment>long: {0} photos, e.g. "120 photos"; {1} their size; {2} the format, e.g. "Linear DNG"</comment></data>
|
||||
<data name="Archive.Convert.Sizes" xml:space="preserve"><value>{0} → {1}</value><comment>sizes before and after a conversion</comment></data>
|
||||
<data name="Archive.Convert.Skipped.ColorProfile" xml:space="preserve"><value>Photos whose colour profile this format can neither keep nor convert stay as they are.</value><comment>long: why photos are not converted in a conversion dry run</comment></data>
|
||||
<data name="Archive.Convert.Skipped.EightBit" xml:space="preserve"><value>RAW photos this computer develops at 8 bits only stay as they are; JPEG converts them.</value><comment>long: why photos are 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.TooLarge" xml:space="preserve"><value>Photos larger than this format can hold 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.SkippedPhotos.one" xml:space="preserve"><value>{0:N0} skipped</value><comment>photos a conversion leaves as they are</comment></data>
|
||||
@@ -183,7 +198,7 @@
|
||||
<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.ConvertFailed" xml:space="preserve"><value>Left as it was: {0}. {1}</value><comment>long: job log line; {0} sequence title, {1} what failed and why (sentences)</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>
|
||||
|
||||
+16
-1
@@ -40,22 +40,37 @@
|
||||
<data name="Archive.Convert.Blocked.Unreadable" xml:space="preserve"><value>Il file della sequenza non si può leggere.</value></data>
|
||||
<data name="Archive.Convert.Done.one" xml:space="preserve"><value>{0:N0} sequenza convertita</value></data>
|
||||
<data name="Archive.Convert.Done.other" xml:space="preserve"><value>{0:N0} sequenze convertite</value></data>
|
||||
<data name="Archive.Convert.Failed.Changed" xml:space="preserve"><value>La foto non corrisponde più alla copia archiviata; verifica la sequenza.</value></data>
|
||||
<data name="Archive.Convert.Failed.ColorProfile" xml:space="preserve"><value>Il suo profilo colore non si può né conservare né convertire in questo formato.</value></data>
|
||||
<data name="Archive.Convert.Failed.EightBit" xml:space="preserve"><value>Questo computer sviluppa questo RAW solo a 8 bit, troppo pochi per un file a 16 bit; JPEG lo converte.</value></data>
|
||||
<data name="Archive.Convert.Failed.Full" xml:space="preserve"><value>Il disco dell'archivio è pieno.</value></data>
|
||||
<data name="Archive.Convert.Failed.NoDecoder" xml:space="preserve"><value>Nessun decodificatore di questo computer la legge a piena risoluzione.</value></data>
|
||||
<data name="Archive.Convert.Failed.NotVerified" xml:space="preserve"><value>Il file convertito non si è riletto come era stato scritto.</value></data>
|
||||
<data name="Archive.Convert.Failed.Other" xml:space="preserve"><value>Non è stato possibile creare il file convertito.</value></data>
|
||||
<data name="Archive.Convert.Failed.PreviewOnly" xml:space="preserve"><value>Questo computer la legge solo dalla sua anteprima incorporata: convertila su un PC che la legga a piena risoluzione.</value></data>
|
||||
<data name="Archive.Convert.Failed.TooLarge" xml:space="preserve"><value>È più grande di quanto questo formato o la memoria per una foto possano contenere.</value></data>
|
||||
<data name="Archive.Convert.Failed.Unreadable" xml:space="preserve"><value>Non è stato possibile decodificare la foto.</value></data>
|
||||
<data name="Archive.Convert.Format" xml:space="preserve"><value>Formato</value></data>
|
||||
<data name="Archive.Convert.Heading.one" xml:space="preserve"><value>Converti {0:N0} sequenza</value></data>
|
||||
<data name="Archive.Convert.Heading.other" xml:space="preserve"><value>Converti {0:N0} sequenze</value></data>
|
||||
<data name="Archive.Convert.HeadingAll" xml:space="preserve"><value>Converti {0}</value></data>
|
||||
<data name="Archive.Convert.Mode" xml:space="preserve"><value>Modalità</value></data>
|
||||
<data name="Archive.Convert.NewSequence" xml:space="preserve"><value>Nuova sequenza</value></data>
|
||||
<data name="Archive.Convert.NotPlaced" xml:space="preserve"><value>Le foto convertite non hanno potuto prendere il loro posto. {0}</value></data>
|
||||
<data name="Archive.Convert.PhotoFailed" xml:space="preserve"><value>Impossibile convertire {0}. {1}</value></data>
|
||||
<data name="Archive.Convert.Quality" xml:space="preserve"><value>Qualità</value></data>
|
||||
<data name="Archive.Convert.Replace" xml:space="preserve"><value>Sostituisci</value></data>
|
||||
<data name="Archive.Convert.ReplaceHeading.one" xml:space="preserve"><value>Sostituire le foto di {0:N0} sequenza?</value></data>
|
||||
<data name="Archive.Convert.ReplaceHeading.other" xml:space="preserve"><value>Sostituire le foto di {0:N0} sequenze?</value></data>
|
||||
<data name="Archive.Convert.ReplaceMessage" xml:space="preserve"><value>{0} ({1}) vengono sostituite dalla loro conversione in {2}; gli originali vanno nel cestino dell'archivio e si possono ripristinare finché non viene svuotato.</value></data>
|
||||
<data name="Archive.Convert.Sizes" xml:space="preserve"><value>{0} → {1}</value></data>
|
||||
<data name="Archive.Convert.Skipped.ColorProfile" xml:space="preserve"><value>Le foto il cui profilo colore questo formato non può né conservare né convertire restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.EightBit" xml:space="preserve"><value>Le foto RAW che questo computer sviluppa solo a 8 bit restano come sono; JPEG le converte.</value></data>
|
||||
<data name="Archive.Convert.Skipped.Missing" xml:space="preserve"><value>Le foto mancanti restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.NoNativeDecoder" xml:space="preserve"><value>Le foto di un formato che questo computer non legge a piena risoluzione restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.PreviewOnly" xml:space="preserve"><value>Le foto lette qui solo dalla loro anteprima incorporata restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.SameFormat" xml:space="preserve"><value>Le foto già in questo formato restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.TooLarge" xml:space="preserve"><value>Le foto più grandi di quanto questo formato possa contenere restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.Undecodable" xml:space="preserve"><value>Le foto illeggibili restano come sono.</value></data>
|
||||
<data name="Archive.Convert.Skipped.Unhashed" xml:space="preserve"><value>Le foto mai verificate restano come sono; verifica prima la sequenza.</value></data>
|
||||
<data name="Archive.Convert.SkippedPhotos.one" xml:space="preserve"><value>{0:N0} esclusa</value></data>
|
||||
@@ -177,7 +192,7 @@
|
||||
<data name="Archive.Log.ConvertBlocked" xml:space="preserve"><value>Lasciata com'era, occupata o illeggibile: {0}</value></data>
|
||||
<data name="Archive.Log.ConvertChanged" xml:space="preserve"><value>Lasciata com'era, cambiata dopo il piano: {0}</value></data>
|
||||
<data name="Archive.Log.ConvertDone" xml:space="preserve"><value>Sequenze convertite: {0}, nuove sequenze: {1}, foto: {2}</value></data>
|
||||
<data name="Archive.Log.ConvertFailed" xml:space="preserve"><value>Lasciata com'era, una foto non si è potuta convertire: {0}: {1}</value></data>
|
||||
<data name="Archive.Log.ConvertFailed" xml:space="preserve"><value>Lasciata com'era: {0}. {1}</value></data>
|
||||
<data name="Archive.Log.ConvertNothing" xml:space="preserve"><value>Niente da convertire: {0}</value></data>
|
||||
<data name="Archive.Log.Converted" xml:space="preserve"><value>{0}: foto sostituite dalla loro conversione: {1}</value></data>
|
||||
<data name="Archive.Log.ConvertedNew" xml:space="preserve"><value>{0}: foto convertite in una nuova sequenza: {1}</value></data>
|
||||
|
||||
Reference in new issue
Block a user