Skip to content

Commit d0ec941

Browse files
authored
check if exiftool exists in autostyle.lua
1 parent 20a31b3 commit d0ec941

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

contrib/autostyle.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ USAGE
2828
> exiftool -AutoDynamicRange XE021351.RAF
2929
Auto Dynamic Range : 200%
3030
31+
ADDITIONAL SOFTWARE NEEDED FOR THIS SCRIPT
32+
* exiftool
3133
3234
LICENSE
3335
GPLv2
@@ -41,7 +43,7 @@ local darktable = require "darktable"
4143
local autostyle_apply_one_image,autostyle_apply_one_image_event,autostyle_apply,exiftool_attribute,capture
4244

4345
-- Tested it with darktable 1.6.1 and darktable git from 2014-01-25
44-
darktable.configuration.check_version(...,{2,0,2},{2,1,0},{3,0,0},{4,0,0})
46+
darktable.configuration.check_version(...,{2,0,2},{2,1,0},{3,0,0},{4,0,0},{5,0,0})
4547

4648
-- Receive the event triggered
4749
function autostyle_apply_one_image_event(event,image)
@@ -66,7 +68,11 @@ function autostyle_apply_one_image (image)
6668
darktable.print("style name not found in " .. darktable.preferences.read("autostyle","exif_tag","string"))
6769
return
6870
end
69-
71+
if not checkIfBinExists("exiftool") then
72+
return
73+
end
74+
75+
7076
-- First find the style (we have its name)
7177
local styles= darktable.styles
7278
local style

0 commit comments

Comments
 (0)