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
-- 
Klaus Ethgen                            http://www.ethgen.de/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <kl...@ethgen.de>
Fingerprint: D7 67 71 C4 99 A6 D4 FE  EA 40 30 57 3C 88 26 2B

Attachment: lua.diff.gz
Description: Binary data

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Download Intel&#174; 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