Post by Tobias Ellinghaus2018-05-15 9:37 GMT+02:00 François Patte <
Post by François PattePost by David Vincent-JonesWould it not be much more normal to call gimp from dt! Gimp, after all,
does not have the fille management capabilities of dt ... sounds to me
like the user is going backwards in the process.
Gimp cannot open raw files, so dt is called like a plugin in gimp which
at the end of the raw process opens the exported file from dt and you
can finish your work on the photo with it.
Post by David Vincent-JonesGimp (2.10) from dt , works like a charm.
I did not see how you can call gimp from darktable.
There is a lua script for that.
In the lighttable -> Export selected -> target storage
Here you scroll the list and there is an entry "Edit with GIMP"
Only when you installed that Lua script first. It's not part of dt.
I try to export from darktable to gimp and it is not an easy task: what
do you call "that" lua script? I found at least two. It seems that one
is for linux, the other for windows but it is not explicitely mentionned!
One seems to work for linux and adds a line "export and reimport and
gimp" but nothing happens! In fact almost nothing: if I choose the tiff
format to export a new photo (tif) appears in the lighttable.... this
does not occurs if I choose jpg format. In both case a file is created
in /tmp but gimp does not automatically opens these files.
So, I launch darktable with option -d lua and I get an error:
2,583079 LUA ERROR : /home/patte/.config/darktable/lua/gimp.lua:67:
module 'lib/dtutils.file' not found:
Where is it said that this file is required? I don't know...
I found a file dtutils on the internet and this error disappeared....
Hurrah! But, when I try to export a file to gimp, new errors appear:
24,546088 LUA ERROR : /home/patte/.config/darktable/lua/gimp.lua:6:
attempt to call a nil value (global 'export_and_reimport_callback')
stack traceback:
[C]: in global 'export_and_reimport_callback'
/home/patte/.config/darktable/lua/gimp.lua:6: in function
</home/patte/.config/darktable/lua/gimp.lua:5>
and:
24,546306 LUA ERROR : attempt to yield from outside a coroutine
stack traceback:
[C]: in ?
[C]: in function 'coroutine.yield'
/home/patte/.config/darktable/lua/gimp.lua:10: in upvalue 'callGimp'
/home/patte/.config/darktable/lua/gimp.lua:14: in function
</home/patte/.config/darktable/lua/gimp.lua:13>
This I don't understand... is there a bug in the gimp.lua file I found?
Is something wrong in my config? I don't know!
As I said the task is not easy... Is there somewhere some clear
explanations on how to use lua scripts in darktable? Where to find the
scripts? What are they useful for? How to install them? What are the
dependencies? etc.
I read the darktable page on the site for lua scripts, but it is not
clear enough for me and, as often, you can find explanations to do
sophisticated operations but not simple ones...
Thank you for helping.
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte