Remove trailing whitespaces.

This commit is contained in:
Pascal Obry
2017-04-10 16:59:35 +02:00
parent 76daa583b3
commit efcd48f1d9
7 changed files with 130 additions and 132 deletions

View File

@@ -4,7 +4,7 @@
Copyright (C) 2016 Bill Ferguson <wpferguson@gmail.com>.
Portions are lifted from hugin.lua and thus are
Portions are lifted from hugin.lua and thus are
Copyright (c) 2014 Wolfgang Goetz
Copyright (c) 2015 Christian Kanzian
@@ -29,9 +29,9 @@
This script provides another storage (export target) for darktable. Selected
images are exported in the specified format to temporary storage. GIMP is launched
and opens the files. After editing, the exported images are overwritten to save the
and opens the files. After editing, the exported images are overwritten to save the
changes. When GIMP exits, the exported files are moved into the current collection
and imported into the database. The imported files then show up grouped with the
and imported into the database. The imported files then show up grouped with the
originally selected images.
ADDITIONAL SOFTWARE NEEDED FOR THIS SCRIPT
@@ -50,8 +50,8 @@
CAVEATS
* Developed and tested on Ubuntu 14.04 LTS with darktable 2.0.3 and GIMP 2.9.3 (development version with
> 8 bit color)
* There is no provision for dealing with the xcf files generated by GIMP, since darktable doesn't deal with
them. You may want to save the xcf file if you intend on doing further edits to the image or need to save
* There is no provision for dealing with the xcf files generated by GIMP, since darktable doesn't deal with
them. You may want to save the xcf file if you intend on doing further edits to the image or need to save
the layers used. Where you save them is up to you.
BUGS, COMMENTS, SUGGESTIONS
@@ -123,11 +123,11 @@ end
function checkIfFileExists(filepath)
local file = io.open(filepath,"r")
local ret
if file ~= nil then
io.close(file)
if file ~= nil then
io.close(file)
dt.print_error("true checkIfFileExists: "..filepath)
ret = true
else
else
dt.print_error(filepath.." not found")
ret = false
end
@@ -254,7 +254,7 @@ local function gimp_edit(storage, image_table, extra_data) --finalize
return
end
-- list of exported images
-- list of exported images
local img_list
-- reset and create image list
@@ -269,13 +269,13 @@ local function gimp_edit(storage, image_table, extra_data) --finalize
local gimpStartCommand
gimpStartCommand = "gimp "..img_list
dt.print_error(gimpStartCommand)
dt.control.execute( gimpStartCommand)
-- for each of the image, exported image pairs
-- move the exported image into the directory with the original
-- move the exported image into the directory with the original
-- then import the image into the database which will group it with the original
-- and then copy over any tags other than darktable tags
@@ -286,8 +286,8 @@ local function gimp_edit(storage, image_table, extra_data) --finalize
while checkIfFileExists(myimage_name) do
myimage_name = filename_increment(myimage_name)
-- limit to 99 more exports of the original export
if string.match(get_basename(myimage_name), "_(d-)$") == "99" then
break
if string.match(get_basename(myimage_name), "_(d-)$") == "99" then
break
end
end
@@ -300,7 +300,7 @@ local function gimp_edit(storage, image_table, extra_data) --finalize
groupIfNotMember(image, myimage)
for _,tag in pairs(dt.tags.get_tags(image)) do
for _,tag in pairs(dt.tags.get_tags(image)) do
if not (string.sub(tag.name,1,9) == "darktable") then
dt.print_error("attaching tag")
dt.tags.attach(tag,myimage)
@@ -315,5 +315,3 @@ end
dt.register_storage("module_gimp", _("Edit with GIMP"), show_status, gimp_edit)
--