Klaus Ethgen a écrit :
> Hi Folks,
>
> I am in a very early state to implement lua scripting capability to
> geeqie (so I do not want to commit in this early state at all). To let
> you see some results and hear if there is interest in it I put the diff
> to the current master in the attachment.
>
> To test it, you can for example add the following script to
> ~/.config/geeqie/lua/date.lua:
> ---
> exif = Image:get_exif();
> mydate = Image:get_date();
> exifdate = exif:get_datum("Exif.Photo.DateTimeOriginal");
> if (exifdate) then
>    mydate = exifdate;
> end
> return os.date("%c", mydate);
> ---
>
> ... and substitute "%date%" in the overlay display with "%lua/date.lua/%".
>
> At the moment I just export some values like path, name, extension,
> date, size and all exif values to lua. Also only this interface to the
> overlay is implemented.
>
> My plan is to allow to change collections from lua or iter over image
> duplicates to get ridge of them in some intelligent way. There might
> also interest in using it in common scripting as the footprint for lua
> is very small.
>
> However, that's all future music. I am interested in your answers.
>
> Regards
>    Klaus
>   
Hi Klaus,

 good idea.

About implementation, i would just change %lua/file.lua% to %lua:file% ;)
Perhaps the whole overlay "template" can be converted to a lua script.

--
Zas


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to