Skip to content

Commit 29033f1

Browse files
committed
Small fixes
1 parent 188e90a commit 29033f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/ultrahdr.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ local function generate_ultrahdr(encoding_variant, images, settings, step, total
484484
ok = copy_or_export(images["hdr"], hdr, "jpegxl", DT_COLORSPACE_PQ_P3, {
485485
bpp = 10,
486486
quality = 100, -- lossless
487-
effort = 1 -- we don't care about the size, the faile is temporary.
487+
effort = 1 -- we don't care about the size, the file is temporary.
488488
})
489489
if not ok then
490490
table.insert(errors, string.format(_("Error exporting %s to %s"), images["hdr"].filename, "jxl"))
@@ -527,8 +527,8 @@ local function generate_ultrahdr(encoding_variant, images, settings, step, total
527527
return cleanup(), errors
528528
end
529529
-- sanity check for file sizes (sometimes dt exports different size images if the files were never opened in darktable view)
530-
if file_size(sdr_raw) ~= size_in_px * 4 or file_size(hdr_raw) ~= size_in_px & 3 then
531-
table.insert(errors, string.format(_("Wrong raw image dimensions: %s, expected %dx%d. Try opening the image in darktable mode first."), images["sdr"].filename, sdr_w, sdr_h))
530+
if file_size(sdr_raw) ~= size_in_px * 4 or file_size(hdr_raw) ~= size_in_px * 3 then
531+
table.insert(errors, string.format(_("Wrong raw image resolution: %s, expected %dx%d. Try opening the image in darktable mode first."), images["sdr"].filename, sdr_w, sdr_h))
532532
return cleanup(), errors
533533
end
534534
update_job_progress()
@@ -766,7 +766,7 @@ This determines how the plugin groups images into separate stacks (each stack wi
766766
- %s: Group images into stacks, using the source image path + filename (ignoring extension).
767767
Use this method if the source images for a given stack are darktable duplicates.
768768
769-
As an added precaution, each image in a stack needs to have the same dimensions.
769+
As an added precaution, each image in a stack needs to have the same resolution.
770770
]]), _("one stack"), _("multiple stacks (use filename)")),
771771
selected = 0,
772772
_("one stack"), -- SELECTION_TYPE_ONE_STACK
@@ -789,7 +789,7 @@ GUI.optionwidgets.quality_widget = dt.new_widget("slider") {
789789

790790
GUI.optionwidgets.gainmap_downsampling_widget = dt.new_widget("slider") {
791791
label = _('gain map downsampling steps'),
792-
tooltip = _('Exponent (2^x) of the gain map downsampling factor.\nDownsampling reduces the file size, at the expense of quality.\n\n0 = don\'t downsample the gain map, 7 = maximum downsampling (128x)'),
792+
tooltip = _('Exponent (2^x) of the gain map downsampling factor.\nDownsampling reduces the gain map resolution.\n\n0 = don\'t downsample the gain map, 7 = maximum downsampling (128x)'),
793793
hard_min = 0,
794794
hard_max = 7,
795795
soft_min = 0,

0 commit comments

Comments
 (0)