Skip to content

Commit 2a4452c

Browse files
committed
Workaround darktable-org/darktable#17529 for future DT versions.
1 parent 749db97 commit 2a4452c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

contrib/ultrahdr.lua

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ local gettext = dt.gettext.gettext
4646

4747
local namespace = "module_ultrahdr"
4848

49-
-- works with darktable API version from 5.0.0 on
50-
du.check_min_api_version("7.0.0", "ultrahdr")
49+
-- works with darktable API version from 4.8.0 on
50+
du.check_min_api_version("9.3.0", "ultrahdr")
5151

5252
dt.gettext.bindtextdomain(namespace, dt.configuration.config_dir .. "/lua/locale/")
5353

@@ -360,7 +360,12 @@ local function generate_ultrahdr(encoding_variant, images, settings, step, total
360360
for k, v in pairs(props) do
361361
exporter[k] = v
362362
end
363-
local ok = not exporter:write_image(src_image, dest)
363+
local ok = exporter:write_image(src_image, dest)
364+
if dt.configuration.api_version_string == "9.3.0" then
365+
-- Workaround for https://github.com/darktable-org/darktable/issues/17528
366+
ok = not ok
367+
end
368+
364369
if prev then
365370
set_combobox("lib/export/profile", 0, "plugins/lighttable/export/icctype", prev)
366371
end

0 commit comments

Comments
 (0)