On Wed, 10 Jun 2009 16:32:08 -0400
Jae-Joon Lee <lee.j.j...@gmail.com> wrote:
I guess I misunderstood your intention.
As you posted the message in the mpl list, I assumed
that you want to
crop out the boundary of the mpl figure, which seems to
be not the
case.
Sorry for the noise.
-JJ
Hi,
I found a way to run gimp (gimp2.2) in batch mode.
gimp --batch-interpreter plug_in_script_fu_eval -i -d -b
'(script-autocrop "/home/nwagner/test.png")' '(gimp-quit
0)'
Now I would like to run gimp from python using subprocess,
popen2 or os.system.
How do I call gimp with the arguments from python ?
Nils
(define (script-autocrop filename)
(let ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(drawable (car (gimp-image-active-drawable image)))
)
(plug-in-autocrop RUN-NONINTERACTIVE image drawable)
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)
)
)
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users