Re: [Gimp-user] scripting

2009-12-30 Thread Colin J. Williams
On 30-Dec-09 10:42 AM, Elwin Estle wrote: Is it in the plan to remove the scheme scripting in Gimp and go to all Python scripting?  Is there much of a difference between what can be done with either?  I have tried a couple of times to learn Python, but I am an old fogy

Re: [Gimp-user] scripting

2009-12-30 Thread Patrick Horgan
Elwin Estle wrote: #1 is Core Python Programming by Wesley Chun. He covers everything. There are gotchas in there that you'd have to program in python for years to learn, all in a nice clear, well organized, progressive, understandable format. Good reference material in the back too. Could

Re: [Gimp-user] Scripting - How to save JPEG with thumbnails

2007-05-07 Thread Sven Neumann
Hi, On Mon, 2007-05-07 at 11:37 +0200, Guillaume Bonillo wrote: > I am new to scheme scripting. > What i want to do is open pictures from a directory and apply a very > simple macro. > > I can do it manually with the following steps : > - open image "the_image.jpg". > - save as the

Re: [Gimp-user] Scripting - How to save JPEG with thumbnails

2007-05-07 Thread Kevin Cozens
Guillaume Bonillo wrote: > What i want to do is open pictures from a directory and apply a very > simple macro. > > I can do it manually with the following steps : > - open image "the_image.jpg". > - save as the_image_with_thumbnail.jpg > - choose options : q = 0.85 , progressive

Re: [Gimp-user] Scripting - How to save JPEG with thumbnails

2007-05-07 Thread Guillaume Bonillo
Guillaume Bonillo a écrit : Paul Surgeon a écrit : On Monday 07 May 2007 11:37, Guillaume Bonillo wrote: Hi, I am new to scheme scripting. What i want to do is open pictures from a directory and apply a very simple macro. I can do it manually with the following steps : - open image "th

Re: [Gimp-user] Scripting - How to save JPEG with thumbnails

2007-05-07 Thread Guillaume Bonillo
Paul Surgeon a écrit : On Monday 07 May 2007 11:37, Guillaume Bonillo wrote: Hi, I am new to scheme scripting. What i want to do is open pictures from a directory and apply a very simple macro. I can do it manually with the following steps : - open image "the_image.jpg". - save as .

Re: [Gimp-user] Scripting - How to save JPEG with thumbnails

2007-05-07 Thread Paul Surgeon
On Monday 07 May 2007 11:37, Guillaume Bonillo wrote: > Hi, > > I am new to scheme scripting. > What i want to do is open pictures from a directory and apply a very > simple macro. > > I can do it manually with the following steps : > - open image "the_image.jpg". > - save as the_image

Re: [Gimp-user] Scripting questions...

2006-11-26 Thread Saul Goode
A destructive way (i.e., work on a duplicate) of doing this would be to scale your layer down to 1x1 pixels and then fetch the color of that pixel (using the PDB function 'gimp-drawable-get-pixel') > Using python, I'm trying to find the color that is used on a layer. The > layer has an alpha chan

Re: [Gimp-user] Scripting questions...

2006-11-26 Thread David Gowers
On 11/27/06, Jerry Baker <[EMAIL PROTECTED]> wrote: Using python, I'm trying to find the color that is used on a layer. The layer has an alpha channel and it only uses 1 color on the layer. The problem is, I don't know where the colored pixels are. It may only be one pixel anywhere on the layer

Re: [Gimp-user] Scripting font hinting

2003-09-16 Thread John Green
On Tue, Sep 16, 2003 at 03:19:42PM +0200, Sven Neumann wrote: > > It cannot be set since you are using the compatibility API. There are > no new PDB calls for the text tool yet but I plan to add them when the > time has come. If you absolutely need to turn off hinting, you will > have to wait for

Re: [Gimp-user] Scripting font hinting

2003-09-16 Thread Sven Neumann
Hi, John Green <[EMAIL PROTECTED]> writes: > I've just moved some of my 1.2 scripts to 1.3 and I notice that text > layers are created with font hinting toggled on. Looking at DB > browser, hinting is not an option in gimp-text-fontname so how can > this be set from a script? It cannot be set si

Re: [Gimp-user] Scripting for resize

2003-07-16 Thread pcg
On Wed, Jul 16, 2003 at 06:14:53PM +0200, Sven Neumann <[EMAIL PROTECTED]> wrote: > >I'm just new to script-fu and gimp. I was not aware scheme is used for > >scripting in gimp. I loved that. :D Anyway, I've read the script-fu > >part of the gimp manual. I have a directory tree with abo

Re: [Gimp-user] Scripting for resize

2003-07-16 Thread Sven Neumann
Hi, Sven Neumann <[EMAIL PROTECTED]> writes: > for i in '*.png'; do convert -sample 20x20 $i > small-$i; done That should have read for i in '*.png'; do convert -sample 20x20 $i small-$i; done and it might still be wrong but I guess you got the idea anyway. Sven __

Re: [Gimp-user] Scripting for resize

2003-07-16 Thread Sven Neumann
Hi, "Paulo J Matos" <[EMAIL PROTECTED]> writes: >I'm just new to script-fu and gimp. I was not aware scheme is used for >scripting in gimp. I loved that. :D Anyway, I've read the script-fu >part of the gimp manual. I have a directory tree with about 1000 >images and I'd like to re

Re: [Gimp-user] Scripting for resize

2003-07-16 Thread Mike Thorn
Paulo J Matos wrote: Hi all, I'm just new to script-fu and gimp. I was not aware scheme is used for scripting in gimp. I loved that. :D Anyway, I've read the script-fu part of the gimp manual. I have a directory tree with about 1000 images and I'd like to resize them all to 20x20. Is there an