Merge pull request #383 from dtorop/fuji-dr-load-only-with-exiftool
fujifilm_dynamic_range: only load if exiftool present
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Compensate for Fujifilm raw files made using "dynamic range".
|
Compensate for Fujifilm raw files made using "dynamic range".
|
||||||
|
|
||||||
Copyright (C) 2021 Dan Torop <dant@pnym.net>
|
Copyright (C) 2021, 2022 Dan Torop <dant@pnym.net>
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -116,6 +116,11 @@ local function destroy()
|
|||||||
dt.destroy_event("fujifilm_dr", "post-import-image")
|
dt.destroy_event("fujifilm_dr", "post-import-image")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not df.check_if_bin_exists("exiftool") then
|
||||||
|
dt.print_log("Please install exiftool to use fujifilm_dynamic_range")
|
||||||
|
error "[fujifilm_dynamic_range] exiftool not found"
|
||||||
|
end
|
||||||
|
|
||||||
dt.register_event("fujifilm_dr", "post-import-image",
|
dt.register_event("fujifilm_dr", "post-import-image",
|
||||||
detect_dynamic_range)
|
detect_dynamic_range)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user