[Gimp-user] Using Script-Fu, how can I get coordinates selected by a user on an image?

2011-01-27 Thread Rob Frohne

Hi All,

I am trying to write a script-fu script to process white board photos.  
I want to select four coordinates to do a perspective-transformation and 
crop on.  Is there a way to interactively let a user select points on a 
photo and get that information back into the script?


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


[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


[Gimp-user] How can you make files open in one instance of gimp?

2011-04-10 Thread Rob Frohne

Hi All,

I'm trying to streamline a daily activity processing photos with Gimp by 
using incrontab (which makes it when you add files to a directory, it 
will automatically run a program to deal with the event).  I have a 
python-fu script that I need to run after selecting four corners of what 
will be new photos.  It will run itself on all images open in gimp which 
reduces my keystrokes or mouse clicks.  The problem I'm having is that 
when I put four photos into the processing directory, incron opens four 
instances of gimp instead of opening gimp once and adding each photo to 
its open images.  I'm using Ubuntu Linux.  Are there any ideas out there 
on how to get around this problem cleanly?  I'd really like to make the 
same instance of gimp open the photos, but I'm not sure how to do that.


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: rob_frohne.vcf___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Fwd: scriipt-fu or python?

2011-05-13 Thread Rob Frohne

Hi John,

I put python scripts in ~/.gimp-2.6/plug-ins/.

After trying script-fu and python, I recommend python.  The language is 
more similar to what you know and better documented, and a more useful 
language to know anyway.


Best regards,

Rob

On 05/13/2011 06:08 AM, John Culleton wrote:

Gimp 2.6.11 on Slackware Linux:

1. Do python scripts go into the same folder as .scm scripts? If not, where? I
find the .scm scripts in

/usr/share/gimp/2.0/scripts

2. I don't know either language but have programmed in COBOL and Tcl/Tk with
side excursions into Perl, C and so on.  Given this background which will the
easiest to master for my first plug-in?

The task I have in mind is gel text as described in The Artist's Guide to
Gimp Effects on page 268ff. I did same for my current project but did not have
much fun going through the 26 +/- steps over and over.


--
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: rob_frohne.vcf___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user