[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 gimp-file-save-thumbnail function

2008-01-07 Thread Martin Bradley
Hi Joao, May I suugest this code instead of the above? : from gimpfu import * def python_fu_create_thumb(filename): img = pdb.gimp_file_load(filename, filename) pdb.gimp_file_save_thumbnail(img, filename) register ( python-fuc-create-thumb, Create Thumbnail of Image

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-07 Thread Manish Singh
On Mon, Jan 07, 2008 at 07:30:22PM +, Martin Bradley wrote: I don't want to try to get your code working because I know nothing about Python, I know it is a good language. The other reason I'm not happy using it is that it adds another layer of software to a solution that should work on

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Kevin Cozens
Martin Bradley wrote: (define (script-fu-create-thumb filename) (let* ((img 0)) ;; car needed here because gimp functions return values as lists (set! img (car (gimp-file-load 1 filename filename)) (gimp-file-save img filename) (print (gimp-file-save-thumbnail img

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Martin Bradley
Hi Folks, You have an error in your placement of ')'. That was because I thought set was used similar to (let ..) I don't think you need the file save since you haven't changed the file since it was loaded. I have corrected the arguments. I saved the file first because

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Kevin Cozens
Martin Bradley wrote: I'd been slowly trying to learn Common Lisp and thought that Script-Fu had it. Here is the scheme coding tutorial I was using, most likely the wrong thing to be reading. http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-1.html#node_toc_node_sec_4.1 Script-Fu

Re: [Gimp-user] Script-fu gimp-file-save-thumbnail function

2008-01-04 Thread Joao S. O. Bueno
On Friday 04 January 2008 19:35, Martin Bradley wrote: Hi Folks, You have an error in your placement of ')'. That was because I thought set was used similar to (let ..) I don't think you need the file save since you haven't changed the file since it was loaded. I have corrected the

Re: [Gimp-user] Script-fu : gimp-text-fontname and text variable

2006-09-20 Thread Sven Neumann
Hi, On Wed, 2006-09-20 at 00:15 +0200, Nicolas wrote: I made a script-fu script, in which I write some text, using this syntax: (set! text-float (car (gimp-text-fontname img texteblanc 66 448 text_to_write 0 1 34 0 FleurishScript Ultra-Light))) Photo is a variable : SF-VALUE

Re: [Gimp-user] Script-fu : gimp-text-fontname and text variable

2006-09-20 Thread Nicolas
On Wed, Sep 20, 2006 at 06:03:33PM +0200, Nicolas MAUFRAIS wrote: On Wed, Sep 20, 2006 at 09:06:57AM +0200, Sven Neumann wrote: It would help if you showed us the full script. From the snippets you posted so far, I can only guess that you misunderstood the concept of variable declaration in

Re: [Gimp-user] Script-fu : gimp-text-fontname and text variable

2006-09-20 Thread Nicolas
On Wed, Sep 20, 2006 at 09:09:13PM +0200, Sven Neumann wrote: Hi, On Wed, 2006-09-20 at 20:15 +0200, Nicolas wrote: What are the first and second variables? 1 and 2 ? Where do they come from??? SF-IMAGE Image 0 SF-DRAWABLE Drawable 0

Re: [Gimp-user] Script-fu : gimp-text-fontname and text variable

2006-09-19 Thread Nicolas
On Wed, Sep 20, 2006 at 12:15:26AM +0200, Nicolas MAUFRAIS wrote: Hello, I made a script-fu script, in which I write some text, using this syntax: (set! text-float (car (gimp-text-fontname img texteblanc 66 448 text_to_write 0 1 34 0 FleurishScript Ultra-Light))) Photo is a variable