[Gimp-user] How do I get the current image filename and directory name in script-fu?

2011-01-30 Thread Rob Frohne

Hi All,

I need to process multiple photos every day in the same way and am 
trying to minimize the effort needed by automating Gimp with Scrip-fu, 
which seems to be kind of limited.  My plan was to save the files in 
specified folders and using incron (an inotify service) to open them in 
Gimp; do a manual perspective backward transformation by hand and start 
a script would, resize them and based on their filename and what 
directory they came from, save them to the correct folders for display 
on web pages.


I'm having difficulty figuring out how to get the filename and directory 
which the images came from.  Does anyone have any tips?


Thanks,

Rob

--
Rob Frohne, Ph.D., P.E.
E.F. Cross School of Engineering
Walla Walla University
100 SW 4th Street
College Place, WA 99324
(509) 527-2075   http://people.wallawalla.edu/~rob.frohne

attachment: frohro.vcf___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] How do I get the current image filename and directory name in script-fu?

2011-01-30 Thread Kevin Cozens
Rob Frohne wrote:
 I'm having difficulty figuring out how to get the filename and directory 
 which the images came from.  Does anyone have any tips?

If you look at the Procedure Browser, you will find the following:
 (gimp-image-get-filename image)

It returns the directory path and filename for the loaded file.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user