[Gimp-user] Script-fu Gimp

2011-06-08 Thread monty
Hi I want to apply curve to number of images using script-fu in Gimp. Can you please help. -- monty (via gimpusers.com) ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] script-fu-menu-register with space in folder name?

2010-10-31 Thread Alan Campbell
On Mon Oct 25 10:03:38 PDT 2010 Sven Neumann said: but if I try, subfolder Joint Scripts doens't appear Any way to get a space in a subfolder name? Are you sure? I wonder how all the scripts in the Alpha to Logo folder register themselves then. Perhaps you should register the menu

[Gimp-user] Script-Fu Illegal Function Error

2010-10-29 Thread Aitchbee
Try getting rid of the double parenthesis around the gimp-image-get-active-vectors. -Rob A Bingo! You are right. You have my undying gratitude. I played with this thing so long I don't know how the extra parenthesis got there. This kind of structure is new to me. I first learned programming on

[Gimp-user] Script-Fu Illegal Function Error

2010-10-28 Thread Aitchbee
I am getting an “Illegal Function” error message for a Script-Fu script I wrote. Can anyone tell me what I am doing wrong? The script is supposed to make a selection from the active path (vector), fill the selection with the foreground color and stroke the selection with the active brush. I

Re: [Gimp-user] Script-Fu Illegal Function Error

2010-10-28 Thread Rob Antonishen
Try getting rid of the double parenthesis around the gimp-image-get-active-vectors. -Rob A ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] script-fu-menu-register with space in folder name?

2010-10-25 Thread Sven Neumann
On Sun, 2010-10-24 at 20:24 +, Alan Campbell wrote: I'd like to do (script-fu-menu-register some_func Image/File/Create/Joint Scripts) but if I try, subfolder Joint Scripts doens;t appear (script-fu-menu-register some_func Image/File/Create/JointScripts) works fine. Any way

[Gimp-user] script-fu-menu-register with space in folder name?

2010-10-24 Thread Alan Campbell
I'd like to do (script-fu-menu-register some_func Image/File/Create/Joint Scripts) but if I try, subfolder Joint Scripts doens;t appear (script-fu-menu-register some_func Image/File/Create/JointScripts) works fine. Any way to get a space in a subfolder name?

[Gimp-user] Script-fu script defaults

2010-10-05 Thread John Coppens
Hello people. A couple of years ago, I wrote a script to add titles to images. I offer the options of position, color and combination mode in the dialog. I use this script quite often. I never found if it is possible to assign default values to the variables, eg. set the color dialog by default

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-04 Thread saulgoode
Quoting Alan Campbell gimp-u...@alancampbelllists.ukfsn.org: Always got the Woodrat folder under File | Create menu, no shortcut key indicated. On 3 Oct 2010 at 11:17:05, Sven Neumann wrote: I am pretty sure that it theoretically should work this way. After all the Script-Fu extension

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-04 Thread Alan Campbell
On 4 Oct 2010 at 10:21:16 PDT saulgoode at flashingtwelve.brickfilms.com wrote: It is not a problem with the branch register command not being processed, but that branch registration seems to require that plug-in be associated with it (see 'plugin_menu_branch_register_invoker()' in

[Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
One of uses of an underscore is to pick out the shortcut character in a menu item: (script-fu-register wrdhb_create_half_blind_dovetail _Half blind dovetail... ;menu label Create Template for Half blind Dovetail ) There also appears to be (script-fu-register

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Sven Neumann
On Sun, 2010-10-03 at 12:59 +, Alan Campbell wrote: One of uses of an underscore is to pick out the shortcut character in a menu item: (script-fu-register wrdhb_create_half_blind_dovetail _Half blind dovetail... ;menu label Create Template for Half blind Dovetail )

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
Hi Sven, On 3 Oct 2010 at 14:19, Sven Neumann wrote: On Sun, 2010-10-03 at 12:59 +, Alan Campbell wrote: One of uses of an underscore is to pick out the shortcut character in a menu item: (script-fu-register wrdhb_create_half_blind_dovetail _Half blind dovetail... ;menu

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Sven Neumann
On Sun, 2010-10-03 at 13:42 +, Alan Campbell wrote: You need to explicitly create the submenu using gimp-plugin-menu-branch-register. This procedure should accept mnemonics marked with an underscore. Tried (gimp-plugin-menu-branch-register Image/File/Create W_oodrat)

Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
Always got the Woodrat folder under File | Create menu, no shortcut key indicated. On 3 Oct 2010 at 11:17:05, Sven Neumann wrote: I am pretty sure that it theoretically should work this way. After all the Script-Fu extension itself creates sub-menus this way and those sub-menus do have

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-12 Thread saulgoode
Quoting Alan Campbell gimp-u...@alancampbelllists.ukfsn.org: That's really an abuse of the gimprc though. So it's really only meant for GIMP and GIMP plugin settings? I agree with Sven that using gimprc for this purpose is inappropriate. Also it looks like once I've called gimp-gimprc-set,

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-11 Thread Alan Campbell
On 10 Sep 2010 at 9:35, Rob Antonishen wrote: Ta for reply. use the https://bugzilla.gnome.org/show_bug.cgi?id=572865 Thanks, got that working. Instead of parasites consider using gimp_gimprc_set() and gimp_gimprc_query() which don't seem to have this issue. In Script-fu console

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-11 Thread Sven Neumann
On Sat, 2010-09-11 at 16:53 +, Alan Campbell wrote: On 10 Sep 2010 at 9:35, Rob Antonishen wrote: https://bugzilla.gnome.org/show_bug.cgi?id=572865 Thanks, got that working. Instead of parasites consider using gimp_gimprc_set() and gimp_gimprc_query() which don't seem to have

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-11 Thread Alan Campbell
On Sat, 2010-09-11 at 16:53 +, Alan Campbell wrote: On 11 Sep 2010 at 12:26, Sven Neumann wrote: In Script-Fu it's gimp-gimprc-set. Works, ta. That's really an abuse of the gimprc though. So it's really only meant for GIMP and GIMP plugin settings? Also it looks like once I've

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-10 Thread Alan Campbell
Hi Saul, Many thanks for instant help. I'm trying to figure ut if there's any way that choices made by user in dialog widgets can be remembered and used as values of those widgets next time dialog runs. That is precisely how script dialogs currently behave; the last used values are

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-10 Thread saulgoode
Quoting Alan Campbell gimp-u...@alancampbelllists.ukfsn.org: parasites are just what I need. Can't find much about them. (list WRF_BIT_WIDTH 1 (number-string bit-width))) First list member: parasite ID string. What's the second list member? Flags, I understand from one search result I

[Gimp-user] script-fu: saving dialog choices

2010-09-05 Thread Alan Campbell
Hi, I'm trying to figure ut if there's any way that choices made by a user in dialog widgets can be remembered and used as values of those widgets next time dialog runs. In most other scripting languages I'd save choices to somethng like an ini file, and retrieve stored ini file values before

Re: [Gimp-user] script-fu: saving dialog choices

2010-09-05 Thread saulgoode
Quoting Alan Campbell gimp-u...@alancampbelllists.ukfsn.org: Hi, I'm trying to figure ut if there's any way that choices made by a user in dialog widgets can be remembered and used as values of those widgets next time dialog runs. That is precisely how script dialogs currently behave; the

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Kevin Cozens
Dillon wrote: (set! num-layers (car (gimp-image-get-layers newimage))) (set! layerIDs (cadr (gimp-image-get-layers newimage))) What error messages do you get when the above lines are included? (define (batch-save-as-xcf pattern) (let* ( (filelist (cadr (file-glob pattern 1)))

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Dillon
! filelist (cdr filelist)) ) ) ) Date: Sun, 06 Jun 2010 17:46:15 -0400 From: saulgo...@flashingtwelve.brickfilms.com Subject: Re: [Gimp-user] Script-Fu for batch image conversion To: gimp-user@lists.XCF.Berkeley.EDU Message-ID: 20100606174615.awibbw09xk44k

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Dillon
as xcfname (gimp-message Saving the new file.) (gimp-file-save RUN-NONINTERACTIVE newimage drawable xcfname xcfname) (set! filelist (cdr filelist)) ) ) ) Date: Sun, 06 Jun 2010 17:46:15 -0400 From: saulgo...@flashingtwelve.brickfilms.com Subject: Re: [Gimp-user

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread Dillon
as xcfname (gimp-message Saving the new file.) (gimp-file-save RUN-NONINTERACTIVE newimage drawable xcfname xcfname) (set! filelist (cdr filelist)) ) ) ) Date: Sun, 06 Jun 2010 17:46:15 -0400 From: saulgo...@flashingtwelve.brickfilms.com Subject: Re: [Gimp-user

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-24 Thread saulgoode
Quoting Dillon dillonontheco...@gmail.com: Sorry for being unclear - when I said this line I was referring to: (set! num-layers (car (gimp-image-get-layers newimage))) On Sat, Jul 24, 2010 at 9:50 AM, Dillon dillonontheco...@gmail.com wrote: Here is the code: : : (set! newimage (car

Re: [Gimp-user] Script-Fu for batch image conversion

2010-07-23 Thread Dillon
-save RUN-NONINTERACTIVE newimage drawable xcfname xcfname) (set! filelist (cdr filelist)) ) ) ) Date: Sun, 06 Jun 2010 17:46:15 -0400 From: saulgo...@flashingtwelve.brickfilms.com Subject: Re: [Gimp-user] Script-Fu for batch image conversion To: gimp-user

[Gimp-user] script-fu-round-corners

2010-06-15 Thread John Dey
Hi List, I circulated a script yesterday for rounding corners using the above listed script. I got two suggestions for changes but neither resulting in a working script. Is there a list member that would be willing to send me a small working script using script-fu-round-corners so I can

Re: [Gimp-user] script-fu-round-corners

2010-06-15 Thread Rob Antonishen
Hi List, I thought I might tie off this thread by indicating that I now have a working script.  It appears the definition for script-fu-round-corners in script-fu console is in error in that the run-mode variable indicated is not reflected in the definition of the script.  I removed the

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-07 Thread Deniz Dogan
2010/6/6 Dillon dillonontheco...@gmail.com: Someone off-list suggested ImageMagick.  Some googling shows this command: convert mulitple.tif single%d.tif I think this will create multiple files, each representing a page from the tif. Since I planned on wrapping all my script-fu in PowerShell,

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-07 Thread Dillon
That's the conclusion I came to as well. I am still figuring out how to do raw CR2 files, but the script below does handle multi-page TIFFs just fine. It's a PowerShell (Windows) wrapper around ImageMagick. Not elegant, and the formatting on blogger kinda sucks (I'll fix that someday), but here

[Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Dillon
Hello folks, I am trying to perform batch conversions of images, including scanned tifs (multi-page), JPGs, and .CR2 raw files. My workflow is as follows: 1) scan/acquire raw images to disk 2) batch convert to XCF 3) hand-edit selected XCFs 4) batch convert to flattened JPG/PNG/etc I am working

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread saulgoode
Quoting Dillon dillonontheco...@gmail.com: I am trying to perform batch conversions of images, including scanned tifs (multi-page), JPGs, and .CR2 raw files. My workflow is as follows: 1) scan/acquire raw images to disk 2) batch convert to XCF 3) hand-edit selected XCFs 4) batch convert

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Dillon
Thanks Saulgoode, that worked! It solved both of my problems. Interesting. I'll have to puzzle through why it worked later, but now I'm on to my next challenge. The reason I'm writing my own script-fu, rather than using Daves Batch Processor, is that my TIF files are multi-page, and when I

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Deniz Dogan
2010/6/6 Dillon dillonontheco...@gmail.com: Thanks Saulgoode, that worked!  It solved both of my problems.  Interesting.  I'll have to puzzle through why it worked later, but now I'm on to my next challenge. The reason I'm writing my own script-fu, rather than using Daves Batch Processor, is

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread Dillon
Someone off-list suggested ImageMagick. Some googling shows this command: convert mulitple.tif single%d.tif I think this will create multiple files, each representing a page from the tif. Since I planned on wrapping all my script-fu in PowerShell, I could insert a call to imagemagick to create

Re: [Gimp-user] Script-Fu for batch image conversion

2010-06-06 Thread saulgoode
Quoting Dillon dillonontheco...@gmail.com: The reason I'm writing my own script-fu, rather than using Daves Batch Processor, is that my TIF files are multi-page, and when I load the image and flatten it to a drawable, I end up with both pages flattened into one drawable. I only want one of

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-25 Thread Simon Budig
Thomas DuBuisson (thomas.dubuis...@gmail.com) wrote: - CODE -- (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE image.png image.png))) (layer0 (car (gimp-image-get-active-layer image))) ) (let* ((layer1 (car (gimp-image-flatten

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-25 Thread Thomas DuBuisson
I don't like how you nest the various let*-statements. That makes the code hard to track. It would be better if you have some dummy variable declarations in your outer let*-statement and then use set! to redefine the values. Also note that the use of 25 for the mode is not nice, you really

[Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Hello list, I am planning on evolving image transformations using an AST of the script-fu langauge and generating random (but syntatically correct) scripts. I would like to avoid programming in hundreds of corner cases into the system and thus have the following questions: 1) Script-fu throws

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Update: 1) The question regarding exceptions remains - there are too many corner cases, mostly undocumented, so it would be nice to ignore them silently. 2) I see my fix was almost right but I forgot to take the head of the list: (car (gimp-image-get-active-drawable image)) is what I want, not

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Update 2: 1) Exceptions The macro (not sure of the underlying primitives) catch will catch errors. The web page didn't even call them exceptions, which explains why I/google didn't find it quickly. Ex: when converting an image that might already be RGB to RGB: (catch

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-15 Thread Ilya Zakharevich
On 2009-09-15, jolie S for...@gimpusers.com wrote: ??? Obviously, the same as when I click repeatedly along the path... Imagine select color with add to selection and small threshold... E.g., select colors close to any one in the path. You say you want to select a color close to any one in

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-14 Thread Sven Neumann
Hi, On Sun, 2009-09-13 at 23:42 +, Ilya Zakharevich wrote: I am afraid there is no way to do this for tools like 'color select' or 'magic wand'. Tools are a user interface thing and the PDB explicitly doesn't give access to the user interface parts of GIMP. This sentence does not

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-14 Thread Ilya Zakharevich
On 2009-09-14, Jolie S for...@gimpusers.com wrote: What kind of outcome are you expecting to get when stroking a path with a selection tool? ??? Obviously, the same as when I click repeatedly along the path... Imagine select color with add to selection and small threshold... I can't think

Re: [Gimp-user] Script-Fu vs GIMP UI

2009-09-13 Thread Ilya Zakharevich
On 2009-09-13, Sven Neumann s...@gimp.org wrote: I want to stroke the path with the current tool, with all the parameters as selected in the tool options. I do not think I can do it with the PATHs right-mouse-click menu, can I? (What I see are only choices of Paint tools. What I want is

[Gimp-user] Script-Fu vs GIMP UI

2009-09-13 Thread Jolie S
What kind of outcome are you expecting to get when stroking a path with a selection tool? I can't think of why you want to do this? Maybe someone can help you if we know what it is that you are trying to accomplish. -- jolie (via www.gimpusers.com)

Re: [Gimp-user] Script fu may call Gegl operation ?

2009-09-12 Thread Sven Neumann
Hi, On Wed, 2009-09-09 at 06:33 +0200, photocomix wrote: Something as duplicate layer Apply Gegl operation/c2g on the dup Change layer mode of dup in Value will be possible with script fu ? Not yet, but it is a nice idea. Someone would have to make up a patch that allows to call a GEGL

[Gimp-user] Script fu may call Gegl operation ?

2009-09-08 Thread photocomix
Something as duplicate layer Apply Gegl operation/c2g on the dup Change layer mode of dup in Value will be possible with script fu ? From the default of gegl operation /c2g i will need only to change the setting for samples (from 3 to 6 or more ) would be possible ? -- photocomix (via

[Gimp-user] script-fu rand function

2009-03-22 Thread Catherine Jones
Kevin Cozens wrote: If you want to change the seed each time you start GIMP, add '(srand (realtime))' before you call '(rand)'. Thanks. That solved my problem. -- Catherine ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU

[Gimp-user] script-fu rand function

2009-03-21 Thread Catherine Jones
Hello, When I use the rand function in a script-fu script that I run non-interactively from the command line, I get the exact same result every time. In other words, the command gimp -i -b '(script-name var 1 var2 ...)' -b '(gimp-quit 0)' always does the same thing (assuming the same variable

Re: [Gimp-user] Script-fu for multi-language

2009-03-01 Thread Tetsuya Yuasa
See also the gettext package documentation for increase your knowledge on the subject. Thanks a lot :) I'll see about it. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Re: [Gimp-user] Script-fu for multi-language

2009-02-27 Thread saulgoode
Quoting Tetsuya Yuasa w...@ironsand.net: I've writed some script-fu and I want to know how can I rewrite it for multi-language, exactly said, for two-language. Of course I can write it by separated files, but it bothered me when I need to rewrite the script. Is there any document about it?

Re: [Gimp-user] Script-fu for multi-language

2009-02-27 Thread Tetsuya Yuasa
A list of the translation teams for various languages is available at http://l10n.gnome.org/teams/ . If you contact the appropriate team for your language, they should be able to provide much better guidance. Thanks for your help! Your advise helped me so much. :)

Re: [Gimp-user] Script-fu for multi-language

2009-02-27 Thread Marco Ciampa
On Fri, Feb 27, 2009 at 07:58:32PM +0100, Tetsuya Yuasa wrote: A list of the translation teams for various languages is available at http://l10n.gnome.org/teams/ . If you contact the appropriate team for your language, they should be able to provide much better guidance. Thanks for your

[Gimp-user] Script-fu for multi-language

2009-02-26 Thread Tetsuya Yuasa
Hi, I've writed some script-fu and I want to know how can I rewrite it for multi-language, exactly said, for two-language. Of course I can write it by separated files, but it bothered me when I need to rewrite the script. Is there any document about it? I would appreciate any your help.

Re: [Gimp-user] Script-Fu

2009-02-19 Thread Frantz de Germain
Le Wed, 18 Feb 2009 12:33:36 -0500 saulgo...@flashingtwelve.brickfilms.com écrivait: You still can (and will) use 'set!' in your scripts; but you need to create the variable first. Previously, the variable would be created automatically if it did not exist. Allright, thanks for the

Re: [Gimp-user] Script-Fu

2009-02-18 Thread saulgoode
Quoting Claus Cyrny claus.cy...@web.de: I'm currently trying to write a Script-Fu (actually my first one), but although I found several online tutorials on how to go about, I'm still not sure of the proper syntax for most of the steps I would like the script to perform. I've included an

Re: [Gimp-user] Script-Fu

2009-02-18 Thread Frantz de Germain
Le Wed, 18 Feb 2009 06:51:44 -0500 saulgo...@flashingtwelve.brickfilms.com écrivait: Quoting Claus Cyrny claus.cy...@web.de: I'm currently trying to write a Script-Fu (actually my first one), but although I found several online tutorials on how to go about, I'm still not sure of the

Re: [Gimp-user] Script-Fu

2009-02-18 Thread saulgoode
The code I attached to my previous post had a mistake on line #24 which should have been: (set! layer (car (gimp-image-get-active-layer value-image))) I also should have used 'hue-image' and 'sat-image' when I later called 'plug-in-compose' (the code I had functioned fine, it just might be

Re: [Gimp-user] Script-Fu

2009-02-18 Thread Claus Cyrny
Hi Saul, saulgo...@flashingtwelve.brickfilms.com wrote: The code I attached to my previous post had a mistake on line #24 which should have been: (set! layer (car (gimp-image-get-active-layer value-image))) I also should have used 'hue-image' and 'sat-image' when I later called

Re: [Gimp-user] Script-Fu

2009-02-18 Thread saulgoode
I did not properly present the part about pasting the recomposed image back into the original layer. You will want to set the offsets of the pasted layer so that they match the original active layer ('drawable') and to also anchor your pasted layer. The code should be similar to the

[Gimp-user] Script-Fu

2009-02-17 Thread Claus Cyrny
Hi, I'm currently trying to write a Script-Fu (actually my first one), but although I found several online tutorials on how to go about, I'm still not sure of the proper syntax for most of the steps I would like the script to perform. This is basically an advanced 'Unsharp Mask' I have been

Re: [Gimp-user] Script-Fu

2009-02-17 Thread David Gowers
Hello! On Wed, Feb 18, 2009 at 2:19 PM, Claus Cyrny claus.cy...@web.de wrote: Hi, I'm currently trying to write a Script-Fu (actually my first one), but although I found several online tutorials on how to go about, I'm still not sure of the proper syntax for most of the steps I would like

[Gimp-user] Script-fu changes?

2008-12-03 Thread John Coppens
Hello people. I wrote - quite a while ago - a script to make thumbnails, and modified it for 2.4.x. When I tried to run it in GIMP 2.6.3, it did work correctly, but the screen doesn't update as it should. When the image is scaled, the background doesn't clear, and the scaled image is shown in

Re: [Gimp-user] script-fu code to load pdf with set resolution

2008-10-22 Thread Sven Neumann
Hi, On Wed, 2008-10-22 at 01:40 +0200, Ash C. wrote: I am wanting to write a script that will load a pdf with a specified resolution and then save it as a jpeg. When I open the pdf document manually (via the GUI). I am greeted with the Import from PDF window, which allows me to set the

[Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread Ash C.
I am wanting to write a script that will load a pdf with a specified resolution and then save it as a jpeg. When I open the pdf document manually (via the GUI). I am greeted with the Import from PDF window, which allows me to set the resolution of the image which then alters the width and height

Re: [Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread saulgoode
Quoting Ash C. [EMAIL PROTECTED]: I am wanting to write a script that will load a pdf with a specified resolution and then save it as a jpeg. ... When I alter the size of the image using 'gimp-image-resize' it seems to keep the image at the same size but sets the extra area to transparent.

[Gimp-user] script-fu code to load pdf with set resolution

2008-10-21 Thread Ash C.
Quoting Ash C. [EMAIL PROTECTED]: I am wanting to write a script that will load a pdf with a specified resolution and then save it as a jpeg. ... When I alter the size of the image using 'gimp-image-resize' it seems to keep the image at the same size but sets the extra area to transparent.

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-19 Thread Sven Neumann
Hi, On Sat, 2008-10-18 at 21:46 -0400, Alec Burgess wrote: This is explained in the release notes for GIMP 2.6: http://gimp.org/release-notes/gimp-2.6.html Thanks ... I think :-) found the example and perused the linked PDF (section 4.2.2. Binding constructs) with out much if any

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-19 Thread Kevin Cozens
Alec Burgess wrote: Thanks ... I think :-) found the example and perused the linked PDF (section 4.2.2. Binding constructs) with out much if any understanding. I changed: (define (save-layer orig-image layer name) (let* ( (image) (buffer) ) to: (define

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-19 Thread Alec Burgess
Alec Burgess wrote: Since we've had all these messages about this ... I thought I'd ask: Shouldn't the so-called fix I made, adding a dummy variable with a value but leaving the remaining two variables (image) and (buffer) uninitialized still have been a syntax error? I was surprised that it

[Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread Alec Burgess
Script: http://flashingtwelve.brickfilms.com/GIMP/Scripts/save-anim-layers.scm (apparently by Saul Goode 3/11/2008) This script was mentioned in bugzilla: Bug 556548 – Layer extraction script http://bugzilla.gnome.org/show_bug.cgi?id=556548 Attempts to execute it result in: Error while

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread Sven Neumann
Hi, On Sat, 2008-10-18 at 18:19 -0400, Alec Burgess wrote: Error while executing script-fu-save-anim-layers: Error: Bad syntax of binding spec in let* : ((image) (buffer)) I think this is due to changes in script-fu (?) but don't know enough about script-fu to correct it. Could someone

Re: [Gimp-user] script-fu-save-anim-layers

2008-10-18 Thread saulgoode
Script has been updated. Quoting Alec Burgess [EMAIL PROTECTED]: Script: http://flashingtwelve.brickfilms.com/GIMP/Scripts/save-anim-layers.scm (apparently by Saul Goode 3/11/2008) This script was mentioned in bugzilla: Bug 556548 – Layer extraction script

Re: [Gimp-user] Script-fu plugin

2008-10-16 Thread Adonj Adonj
Thank you so much Saul, that works great!!! Date: Wed, 15 Oct 2008 18:15:05 -0400 From: [EMAIL PROTECTED] To: Gimp-user@lists.XCF.Berkeley.EDU Subject: [Gimp-user] Script-fu plugin Quoting Adonj Adonj [EMAIL PROTECTED]: I updated my Gimp program from version 2.4.7 to 2.6.0-i686. The Script

[Gimp-user] Script Fu error

2008-10-15 Thread D.Jones (aka) Capnhud
This scrip used to work in gimp 2.4.7 but when I try to execute this script 2.6.1 I recieve this message but I am not sure what to change in order to make it work again: Error while executing script-fu-quick-sketch2: Error: eval: unbound variable: script-fu-quick-sketch2 ; The GIMP -- an

Re: [Gimp-user] Script Fu error

2008-10-15 Thread Andreas Waechter
D.Jones (aka) Capnhud wrote: Error while executing script-fu-quick-sketch2: Error: eval: unbound variable: script-fu-quick-sketch2 here is a 2 at the end (define (script-fu-quick-sketch theImage here is NO 2 at the end (script-fu-register script-fu-quick-sketch2 here is a 2 at the end

[Gimp-user] Script-fu plugin

2008-10-15 Thread saulgoode
Quoting Adonj Adonj [EMAIL PROTECTED]: I updated my Gimp program from version 2.4.7 to 2.6.0-i686. The Script-fu plugin copyToAllLayers.scm gave an error, and a Gimp Message: Plug-In 'Copy mask' left image undo in inconsistent state, closing open undogroups. I wondered if you have a

Re: [Gimp-user] Script Fu error

2008-10-15 Thread D.Jones (aka) Capnhud
Thanks that did the trick. --- On Wed, 10/15/08, Andreas Waechter [EMAIL PROTECTED] wrote: From: Andreas Waechter [EMAIL PROTECTED] Subject: Re: [Gimp-user] Script Fu error To: [EMAIL PROTECTED] Cc: Gimp Group gimp-user@lists.XCF.Berkeley.EDU Date: Wednesday, October 15, 2008, 3:55 PM

[Gimp-user] Script-fu plugin

2008-10-09 Thread Adonj Adonj
I updated my Gimp program from version 2.4.7 to 2.6.0-i686. The Script-fu plugin copyToAllLayers.scm gave an error, and a Gimp Message: Plug-In 'Copy mask' left image undo in inconsistent state, closing open undogroups. I wondered if you have a correction for the code.Very much appreciated.

Re: [Gimp-user] script-fu plugin

2008-09-30 Thread Bernd Weber
) -- Message: 1 Date: Sun, 28 Sep 2008 00:03:52 -0400 From: Adonj Adonj [EMAIL PROTECTED] Subject: [Gimp-user] script-fu plugin To: gimp-user@lists.XCF.Berkeley.EDU gimp-user@lists.xcf.berkeley.edu Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso

Re: [Gimp-user] script-fu plugin

2008-09-28 Thread peter kostov
Adonj Adonj wrote: I'm using gimp2.4.7 in windows XP. I copied a script-fu plugin I found to my C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, which should copy a layer mask to multiple layers or apply a layer mask to multiple layers. I get an error each time I make an attempt to use

[Gimp-user] Script-fu

2008-09-28 Thread Adonj Adonj
You're absolutely right Peter, my mistake, I meant the script folder C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts.That's where it resides.The new script-fu tab does appear correctly in my image window, however the error I described is present when I click on the tab. Adonj

Re: [Gimp-user] script-fu plugin

2008-09-28 Thread saulgoode
Quoting Adonj Adonj [EMAIL PROTECTED]: I'm using gimp2.4.7 in windows XP. I copied a script-fu plugin I found to my C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, which should copy a layer mask to multiple layers or apply a layer mask to multiple layers. I get an error each

[Gimp-user] Script-fu plugin

2008-09-28 Thread Adonj Adonj
Thank you Saul, that worked perfectly! With regards to your message at: http://72.14.205.104/search?q=cache:7GovFRKtKToJ:lists.xcf.berkeley.edu/lists/gimp-user/2007-January/009388.html+plugin+to+copy+mask+to+all+layers+then+applyhl=enct=clnkcd=2gl=ca You say: You can achieve the same result

Re: [Gimp-user] Script-fu plugin

2008-09-28 Thread saulgoode
Quoting Adonj Adonj [EMAIL PROTECTED]: I wondered if you knew of a script that would also APPLY the copied layers as you mention. Edit the script to add the following code: (set! layers (visible-layers image)) (while (pair? layers) (gimp-layer-remove-mask (car layers)

[Gimp-user] Script-fu plugin

2008-09-28 Thread Adonj Adonj
That was terrific, Saul, thanks a lot! Adonj _ ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

[Gimp-user] script-fu plugin

2008-09-27 Thread Adonj Adonj
I'm using gimp2.4.7 in windows XP. I copied a script-fu plugin I found to my C:\Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins, which should copy a layer mask to multiple layers or apply a layer mask to multiple layers. I get an error each time I make an attempt to use it, which states: Error:

[Gimp-user] script-fu batch file

2008-09-25 Thread Pierre Habraken
Hello, I am a newbie to Gimp. I need to execute Gimp scripts from files which do not reside in ~/.gimp/scripts, for instance with the following invocation example: gimp -i -b $PROJECTDIR/my-script.scm -b 'gimp-quit 0) where $PROJECTDIR is the path to the script my-script.scm. I understand that

Re: [Gimp-user] script-fu batch file

2008-09-25 Thread Sven Neumann
Hi, On Thu, 2008-09-25 at 09:14 +0200, Pierre Habraken wrote: I am a newbie to Gimp. I need to execute Gimp scripts from files which do not reside in ~/.gimp/scripts, for instance with the following invocation example: gimp -i -b $PROJECTDIR/my-script.scm -b 'gimp-quit 0) where $PROJECTDIR

Re: [Gimp-user] Script-Fu

2008-05-18 Thread Xavier Mas
El Saturday 17 May 2008 23:58:17 Kevin Cozens va escriure: Xavier Mas wrote: I need to program some batch actions using Scheme or Perl in GIMP but am not able to see the scripts once they are registered. Scripts are well writed, are example taken from GIMP manual, and I change permissions

[Gimp-user] Script-Fu

2008-05-17 Thread Xavier Mas
I need to program some batch actions using Scheme or Perl in GIMP but am not able to see the scripts once they are registered. Scripts are well writed, are example taken from GIMP manual, and I change permissions on the files as they became executables, but still can't see them in the menu.

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-17 Thread Jonathan Dearborn
. Thanks again, Jonny D From: [EMAIL PROTECTED] To: gimp-user@lists.xcf.berkeley.edu Subject: Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals Date: Fri, 16 May 2008 18:31:20 +0200 CC: [EMAIL PROTECTED] Hi, I tried using Emacs, but changing the encoding didn't affect anything

Re: [Gimp-user] Script-Fu

2008-05-17 Thread Kevin Cozens
Xavier Mas wrote: I need to program some batch actions using Scheme or Perl in GIMP but am not able to see the scripts once they are registered. Scripts are well writed, are example taken from GIMP manual, and I change permissions on the files as they became executables, but still can't see

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-16 Thread Jonathan Dearborn
. I tried using Emacs, but changing the encoding didn't affect anything. Thanks, Jonny D From: [EMAIL PROTECTED] To: gimp-user@lists.xcf.berkeley.edu Subject: Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals Date: Thu, 15 May 2008 10:46:41 +0200 CC: [EMAIL PROTECTED] Hi, Do you

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-16 Thread Torsten Neuer
Hi, I tried using Emacs, but changing the encoding didn't affect anything. Just loading the file, changing the encoding and saving it again won't do anything. The encoding switches are meant for newly entered text. That means that you will have to re-enter the characters with the UTF-8

Re: [Gimp-user] Script-fu (Scheme) and UTF-8 literals

2008-05-15 Thread Sven Neumann
Hi, just use a proper editor. Emacs is available for free and it supports UTF-8 and syntax highlighting for the Scheme language. Sven ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU

  1   2   3   >