Re: [Gimp-user] export and save as gif dialogs

2008-10-20 Thread eleonora46
Saul, Thanks!

When I try to save a file, I get following error message (2 messages on one 
window):
1. there are not enough layers marked as 'Visible' to do the function 'join 
visible layers'. There must be at least 2 layers.
2. script-fu error when executing sg-fast-save 3.6 /tmp/Untitled.gif
Error: procedural database execution failed 
(gimp_image_merge_visible_layers 5.0)

I then added a layer (ctrl-l, duplicate  layer) and then the script saved 
correctly /tmp/Untitled.gif.
I hope, you know how to fix this,
Thanks eleonora

 Here is the script. I tried to write it so that it would run on GIMP  
 2.2 (as well as 2.4 and 2.6) but I have only tested it on version 2.6.
 
 http://flashingtwelve.brickfilms.com/GIMP/Scripts/fast-gif-save.scm

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-20 Thread saulgoode
Quoting [EMAIL PROTECTED]:

 When I try to save a file, I get following error message (2 messages  
  on one window):
 1. there are not enough layers marked as 'Visible' to do the   
 function 'join visible layers'. There must be at least 2 layers.
 ...
 I hope, you know how to fix this,

In this case, it just so happens I do*. The problem is that you are  
using a version of GIMP which is over two years old, and the best  
fix would be to update to a newer version. If for some reason this  
is not possible, here is a version which should function with GIMP 2.2:

http://flashingtwelve.brickfilms.com/GIMP/Scripts/fast-gif-save-22.scm


* http://bugzilla.gnome.org/show_bug.cgi?id=340491

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-20 Thread eleonora46
Saul,

Thanks again, this version works perfectly. :-)

Is there a way to assign some keyboard shortcut to this 
script? That would speed up me even more.
(For example ctrl-1 or something like that)

I always considered gimp reinstalling/update as a big deal. Am I wrong?
I use debian linux.

Thanks, eleonora
 Original-Nachricht 
 Datum: Mon, 20 Oct 2008 05:44:05 -0400
 Von: [EMAIL PROTECTED]
 An: [EMAIL PROTECTED]
 CC: gimp-user@lists.XCF.Berkeley.EDU
 Betreff: Re: [Gimp-user] export and save as gif dialogs

 Quoting [EMAIL PROTECTED]:
 
  When I try to save a file, I get following error message (2 messages  
   on one window):
  1. there are not enough layers marked as 'Visible' to do the   
  function 'join visible layers'. There must be at least 2 layers.
  ...
  I hope, you know how to fix this,
 
 In this case, it just so happens I do*. The problem is that you are  
 using a version of GIMP which is over two years old, and the best  
 fix would be to update to a newer version. If for some reason this  
 is not possible, here is a version which should function with GIMP 2.2:
 
 http://flashingtwelve.brickfilms.com/GIMP/Scripts/fast-gif-save-22.scm
 
 
 * http://bugzilla.gnome.org/show_bug.cgi?id=340491

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-20 Thread eleonora46
Found the keyboard shortcut solution:
http://www.gimp.org/docs/userfaq.html#Bind

Thanks, eleonora
 Original-Nachricht 
 Datum: Mon, 20 Oct 2008 12:29:03 +0200
 Von: [EMAIL PROTECTED]
 An: [EMAIL PROTECTED]
 CC: gimp-user@lists.XCF.Berkeley.EDU
 Betreff: Re: [Gimp-user] export and save as gif dialogs

 Saul,
 
 Thanks again, this version works perfectly. :-)
 
 Is there a way to assign some keyboard shortcut to this 
 script? That would speed up me even more.
 (For example ctrl-1 or something like that)
 
 I always considered gimp reinstalling/update as a big deal. Am I wrong?
 I use debian linux.
 
 Thanks, eleonora
  Original-Nachricht 
  Datum: Mon, 20 Oct 2008 05:44:05 -0400
  Von: [EMAIL PROTECTED]
  An: [EMAIL PROTECTED]
  CC: gimp-user@lists.XCF.Berkeley.EDU
  Betreff: Re: [Gimp-user] export and save as gif dialogs
 
  Quoting [EMAIL PROTECTED]:
  
   When I try to save a file, I get following error message (2 messages  
on one window):
   1. there are not enough layers marked as 'Visible' to do the   
   function 'join visible layers'. There must be at least 2 layers.
   ...
   I hope, you know how to fix this,
  
  In this case, it just so happens I do*. The problem is that you are  
  using a version of GIMP which is over two years old, and the best  
  fix would be to update to a newer version. If for some reason this  
  is not possible, here is a version which should function with GIMP 2.2:
  
  http://flashingtwelve.brickfilms.com/GIMP/Scripts/fast-gif-save-22.scm
  
  
  * http://bugzilla.gnome.org/show_bug.cgi?id=340491
 
 -- 
 Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
 http://www.gmx.net/de/go/multimessenger
 ___
 Gimp-user mailing list
 Gimp-user@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread eleonora46
With SF_STRING or SF_FILENAME  the error remains the same.
 Error: unbound variable (errobj /tmp/x.gif)

-eleonora
 Original-Nachricht 
 Datum: Sat, 18 Oct 2008 23:59:35 +0200
 Von: Sven Neumann [EMAIL PROTECTED]
 An: [EMAIL PROTECTED]
 CC: gimp-user@lists.XCF.Berkeley.EDU
 Betreff: Re: [Gimp-user] export and save as gif dialogs

 Hi,
 
 On Sat, 2008-10-18 at 23:49 +0200, [EMAIL PROTECTED] wrote:
 
  SF-VALUE File Name /tmp/x.gif
  )
  
  (In the script file-gif-save is commented out, 
  it fails at refresh, if not commented out)
  
  However when I run this script I get following error message:
  Script-Fu error when executing (script-fu-glogo-simple2 35 219
 /tmp/x.gif
  Error: unbound variable (errobj /tmp/x.gif)
 
 Try to change the script to use SF-STRING, or better yet, SF-FILENAME
 instead of SF-VALUE for the filename parameter.
 
 
 Sven
 

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread saulgoode
Quoting [EMAIL PROTECTED]:

 With SF_STRING or SF_FILENAME  the error remains the same.
  Error: unbound variable (errobj /tmp/x.gif)

Use SF-STRING or SF-FILENAME, not SF_STRING, SF_FILENAME.

If that does not fix your problem then post your script; it is  
difficult to find bugs when only fragments of code are provided.

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread eleonora46
Hello,

I use SF-WHATEVER, I just had a  typo in the email.
The complete script is my previous email and also attached
to this email.

I test by copying the script into /home/en/.gimp-2.2/scripts,
and then do  a refresh from gimp/Xtns menu.

A reference script copied from /usr/share/gimp/2.0/scripts
works perfectly; however not a single scm script does 
file operations. I suspect, that file operations simply do not
work with scm. That what the tutorial implicates.

-eleonora

 
  With SF_STRING or SF_FILENAME  the error remains the same.
   Error: unbound variable (errobj /tmp/x.gif)
 
 Use SF-STRING or SF-FILENAME, not SF_STRING, SF_FILENAME.
 
 If that does not fix your problem then post your script; it is  
 difficult to find bugs when only fragments of code are provided.
 
 ___
 Gimp-user mailing list
 Gimp-user@lists.XCF.Berkeley.EDU
 https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
; The GIMP -- an image manipulation program
; Copyright (C) 1995 Spencer Kimball and Peter Mattis
;
; Glogo Simple --- save as simple as possible an image as Linux Boot Logo
; Based on Jens Ch. Restmeiers' glogo plug-in
; Copyright (C) 1998 Clifford Wolf
; [EMAIL PROTECTED]
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

(define (script-fu-glogo-simple2 srcimg dummy filename)
	(let*
		(
			(img2   (car (gimp-channel-ops-duplicate srcimg)))
			(img16  (car (gimp-channel-ops-duplicate srcimg)))
			(img224 (car (gimp-channel-ops-duplicate srcimg)))
			(drawa  (car (gimp-image-active-drawable srcimg)))
			(drcol  (car (gimp-drawable-color drawa)))
		)
		;
		; Set names to the images (debug-info)
		;
		(gimp-image-set-filename img2   glogo-bw)
		(gimp-image-set-filename img16  glogo-16)
		(gimp-image-set-filename img224 glogo-224)
		;
		; Resize (i.e. scale) them all
		;
		(gimp-image-scale img2   80 80)
		(gimp-image-scale img16  80 80)
		(gimp-image-scale img224 80 80)
		;
		; Convert them to RGB if they are not
		;
		(if (= drcol 0)
			(begin
(gimp-convert-rgb img2)
(gimp-convert-rgb img16)
(gimp-convert-rgb img224)
			)
		)
		;
		; Flatten it
		;
		(gimp-image-flatten img2)
		(gimp-image-flatten img16)
		(gimp-image-flatten img224)
		;
		; Now change the palletes
		;
		(gimp-convert-indexed-palette img2   1 3 0   )
		(gimp-convert-indexed-palette img16  1 0 16  )
		(gimp-convert-indexed-palette img224 1 0 224 )
		;
		; Save it as gifs (not needed anymore)
		;
;		(file-gif-save 1 img2   (car (gimp-image-active-drawable img2))
;		/tmp/x-2.gif   /tmp/x-2.gif   0 0 0 0)
;		(file-gif-save 1 img16  (car (gimp-image-active-drawable img16))
;		/tmp/x-16.gif  /tmp/x-16.gif  0 0 0 0)
;		(file-gif-save 1 img224 (car (gimp-image-active-drawable img224))
;		/tmp/x-224.gif /tmp/x-224.gif 0 0 0 0)
		;
		; Save it as linux boot logo
		;
;		(gimp-message (string-append Debug-Info: img2= (number-string img2 10)
;		  img16= (number-string img16 10)
;		  img224= (number-string img224 10)))
		(extension-linux-logo 1 filename
		  (car (gimp-image-active-drawable img2))
		  (car (gimp-image-active-drawable img16))
		  (car (gimp-image-active-drawable img224)) )
		;
		; Free the images
		;
		(gimp-image-delete img2)
		(gimp-image-delete img16)
		(gimp-image-delete img224)
	)
)

(script-fu-register script-fu-glogo-simple2
	Image/Script-Fu/Save as Linux Boot Logo2
	Saves any given image as Linux Boot Logo2
	Clifford Wolf
	Clifford Wolf
	Aug 1998
	
	SF-IMAGE Image to Glogo Simple 0
	SF-DRAWABLE Drawable to Glogo Simple 0
	SF-VALUE File Name /tmp/x.gif
)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread saulgoode
Quoting [EMAIL PROTECTED]:

 I use SF-WHATEVER, I just had a  typo in the email.
 The complete script is my previous email and also attached
 to this email.

I did not realize you were trying to use that script exactly; I  
thought you used it as an example in writing your own script. That  
script is over 10 years old and written for use with a very early  
version of GIMP (GIMP is only about 11 years old). It will not work  
with more recent versions of GIMP because of changes over the past  
decade. As an example, your script uses the PDB function  
'gimp-drawable-color' which is no longer available.

 A reference script copied from /usr/share/gimp/2.0/scripts
 works perfectly; however not a single scm script does
 file operations. I suspect, that file operations simply do not
 work with scm. That what the tutorial implicates.

The tutorial you cite is more recent -- it is only about seven years  
old -- but is still too outdated to be used without compensating for  
changes that have taken place in the meantime. GIMP now employs a  
different implementation of the Scheme language interpreter, and the  
Scheme language itself has evolved over time.

File operations in scripts are typically limited to handling image  
files, but they are present and they do work. In fact, there haven't  
been many dramatic changes in this area over the years (the problems  
with your script have nothing to do with its file operations).

If you describe what it is you wish to accomplish, I should be glad to  
assist in writing a script. For such scripts to be effective, by their  
very nature they must be customized to match the workflow of the tasks  
being handled -- once you start making the script flexible enough to  
handle multiple situations, you end up with a workflow just as  
involved as performing the steps manually (this is why you don't see  
many file operation scripts being widely distributed).



___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread eleonora46
 If you describe what it is you wish to accomplish, I should be glad to  
 assist in writing a script. For such scripts to be effective, by their  
 very nature they must be customized to match the workflow of the tasks  
 being handled -- once you start making the script flexible enough to  
 handle multiple situations, you end up with a workflow just as  
 involved as performing the steps manually (this is why you don't see  
 many file operation scripts being widely distributed).

A generous offer. Thanks in advance.
All I need is: 
I do not work with layers, just with gif pictures.
I select part of a gif picture and put it into clipboard, then create a new gif 
picture.
(2-nd menu column: create new picture). So far everything I do manually.

Now: I'd like to write that new picture into a file I give the name, as a gif 
file.
It should not ask any questions, after it knows the file name, it should
write out straighforward the gif file. That's all.

At present I write out hundreds of such little pictures,
and at each time after ctrl-s standard gimp asks 2 stupid questions I answer
with yes, and that takes a lot of in fact for me useless mouseclicks.
I'd like to speed up my procedure by that script.

Thanks a million in advance for your assistance, 
-eleonora
-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread saulgoode
Quoting [EMAIL PROTECTED]:

 All I need is:
 I do not work with layers, just with gif pictures.
 I select part of a gif picture and put it into clipboard, then   
 create a new gif picture.
 (2-nd menu column: create new picture). So far everything I do manually.

 Now: I'd like to write that new picture into a file I give the name,  
  as a gif file.
 It should not ask any questions, after it knows the file name, it should
 write out straighforward the gif file. That's all.

#1. Is it possible to have the outputted filename derived from the  
original image's filename? For example, if you are selecting from an  
image named somegirl.gif then could the script assume that the  
output filename should be named somegirl-cutout.gif?

#2. Is it necessary to create a new image from the copied region? And  
even if it is (e.g., you want to edit the pasted image), would it be  
acceptable if the script performed the creation of this image. I.e.,  
you make your selection and then run the script -- the new image is  
opened (if necessary) and then saved as a GIF.

Item #1 would eliminate the need for a dialog box prompting for a  
filename (and would provide an easier way to handle directory paths).  
Item #2 would be necessary to accomplish Item #1 -- once you have  
created a new image, information about the original image is no longer  
accessible.

If you choose to have the filename of the selected region  
automatically derived from the original filename (i.e., you make a  
selection, then run the script to save it to a GIF) then would you  
want further selections from the same image to overwrite the previous  
one; or would you rather that the filename be modified to indicate a  
version (e.g., somegirl-cutout_1.gif)?

Of course, doing precisely what you described is possible; it just  
entails some steps that might better be automated.

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread eleonora46
 You are aware that you can ackknowledge the default settings in these
 dialogs by pressing the Enter key, aren't you?

Yes, thanks. That's what I do; for 100 pictures that is 200 keypresses.
I'd like to avoid them altogether. 

-eleonora

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread eleonora46
 #1. Is it possible to have the outputted filename derived from the  
 original image's filename? For example, if you are selecting from an  
 image named somegirl.gif then could the script assume that the  
 output filename should be named somegirl-cutout.gif?

No. Picture 2 is derived from the page number  where it is,
for example the first image on page 3248 of picture 100.gif is called 
32481.gif, picture2 32482.gif, etc...
page number is contained by the original picture, and has nothing to do
with it's name. Original picture is called  in the example 100.gif, and the 
derived pictures are called 32481.gif,  32482.gif and 32491.gif
To find the proper name is job for a human, the machine
can not effectively help there.

 #2. Is it necessary to create a new image from the copied region? And  
 even if it is (e.g., you want to edit the pasted image), would it be  
 acceptable if the script performed the creation of this image. I.e.,  
 you make your selection and then run the script -- the new image is  
 opened (if necessary) and then saved as a GIF.

The script is unable to create the images. They must be created manually.
They are pictures in written text, and only a human can decide,
which parts are images and which parts are text. The selected
part then usually gets modified in size and also sometimes rotated.
All jobs, only a human can do properly.
I checked with the most up-to-date ocr programs, they do a lousy
job when they try to find out, which parts are pictures and
which are text. They err in 20-30% of the cases, which 
is completely unacceptable and unusable for me.

 Of course, doing precisely what you described is possible; it just  
 entails some steps that might better be automated.

That exactly would speed up my work by at least 20-30%.

Thanks, eleonora

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-19 Thread saulgoode
Here is the script. I tried to write it so that it would run on GIMP  
2.2 (as well as 2.4 and 2.6) but I have only tested it on version 2.6.

http://flashingtwelve.brickfilms.com/GIMP/Scripts/fast-gif-save.scm

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-18 Thread eleonora46
Hi,

I try to write a gimp-fu script to save the current image as a gif.
I found a sample script on the web that seems to fit:

(define (script-fu-glogo-simple2 srcimg dummy filename)
(let*
(
(img2   (car (gimp-channel-ops-duplicate srcimg)))
(img16  (car (gimp-channel-ops-duplicate srcimg)))
(img224 (car (gimp-channel-ops-duplicate srcimg)))
(drawa  (car (gimp-image-active-drawable srcimg)))
(drcol  (car (gimp-drawable-color drawa)))
)
;
; Set names to the images (debug-info)
;
(gimp-image-set-filename img2   glogo-bw)
(gimp-image-set-filename img16  glogo-16)
(gimp-image-set-filename img224 glogo-224)
;
; Resize (i.e. scale) them all
;
(gimp-image-scale img2   80 80)
(gimp-image-scale img16  80 80)
(gimp-image-scale img224 80 80)
;
; Convert them to RGB if they are not
;
(if (= drcol 0)
(begin
(gimp-convert-rgb img2)
(gimp-convert-rgb img16)
(gimp-convert-rgb img224)
)
)
;
; Flatten it
;
(gimp-image-flatten img2)
(gimp-image-flatten img16)
(gimp-image-flatten img224)
;
; Now change the palletes
;
(gimp-convert-indexed-palette img2   1 3 0   )
(gimp-convert-indexed-palette img16  1 0 16  )
(gimp-convert-indexed-palette img224 1 0 224 )
;
; Save it as gifs (not needed anymore)
;
;   (file-gif-save 1 img2   (car (gimp-image-active-drawable img2))
;   /tmp/x-2.gif   /tmp/x-2.gif   0 0 0 
0)
;   (file-gif-save 1 img16  (car (gimp-image-active-drawable img16))
;   /tmp/x-16.gif  /tmp/x-16.gif  0 0 0 
0)
;   (file-gif-save 1 img224 (car (gimp-image-active-drawable 
img224))
;   /tmp/x-224.gif /tmp/x-224.gif 0 0 0 
0)
;
; Save it as linux boot logo
;
;   (gimp-message (string-append Debug-Info: img2= 
(number-string img2 10)
; img16= (number-string img16 10)
; img224= (number-string img224 
10)))
(extension-linux-logo 1 filename
  (car (gimp-image-active-drawable img2))
  (car (gimp-image-active-drawable img16))
  (car (gimp-image-active-drawable img224)) 
)
;
; Free the images
;
(gimp-image-delete img2)
(gimp-image-delete img16)
(gimp-image-delete img224)
)
)

(script-fu-register script-fu-glogo-simple2
Image/Script-Fu/Save as Linux Boot Logo2
Saves any given image as Linux Boot Logo2
Clifford Wolf
Clifford Wolf
Aug 1998

SF-IMAGE Image to Glogo Simple 0
SF-DRAWABLE Drawable to Glogo Simple 0
SF-VALUE File Name /tmp/x.gif
)

(In the script file-gif-save is commented out, 
it fails at refresh, if not commented out)

However when I run this script I get following error message:
Script-Fu error when executing (script-fu-glogo-simple2 35 219 /tmp/x.gif
Error: unbound variable (errobj /tmp/x.gif)

I found in the tutorial following hint:
http://www.seul.org/~grumbel/gimp/script-fu/script-fu-tut.html
---
You might also want to open a directory and open all the images in it. Not even 
that is possible. The SIOD webpage describes the opendir function, but when you 
try it in Script-Fu it will not work as many other SIOD function.
= (opendir /)
ERROR: unbound variable (errobj opendir)
To solve this you have to work-around this by dumping the directory contents to 
a file and read that file instead, or you can write a Perl-Fu, Python-Fu or a 
Gimp Plug-in.
-

Does this mean, I will never be able to save any files in script-fu?

I have no chance to use perl or python, because perl needs gimptool, I do not
have, and python for gimp tool can not be found on the web.

Thanks in advance for any hint,

Re: [Gimp-user] export and save as gif dialogs

2008-10-18 Thread Sven Neumann
Hi,

On Sat, 2008-10-18 at 23:49 +0200, [EMAIL PROTECTED] wrote:

   SF-VALUE File Name /tmp/x.gif
 )
 
 (In the script file-gif-save is commented out, 
 it fails at refresh, if not commented out)
 
 However when I run this script I get following error message:
 Script-Fu error when executing (script-fu-glogo-simple2 35 219 /tmp/x.gif
 Error: unbound variable (errobj /tmp/x.gif)

Try to change the script to use SF-STRING, or better yet, SF-FILENAME
instead of SF-VALUE for the filename parameter.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-17 Thread Sven Neumann
Hi,

On Thu, 2008-10-16 at 12:27 +0200, ge wrote:
 It seems to be not possible to write such a script.
 Why?
 
 I use debian. I do not have gimptool installed, which is part of 
 libgimp2.0-dev, which is not installed on my system.

You don't need gimptool and you don't need the development package
installed. The whole point of a scripting language is that you can write
one without installing any additional tools. All you need is a text
editor.

 According to documentation gimptool is required for 
 adding gimp scripts.

That is bogus. Can you tell us where this written so that it can be
fixed?


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-16 Thread ge
It seems to be not possible to write such a script.
Why?

I use debian. I do not have gimptool installed, which is part of 
libgimp2.0-dev, which is not installed on my system.
According to documentation gimptool is required for 
adding gimp scripts.
I asked synaptic, to install it; synaptic says, at least 40 packages
had to be deinstalled and reinstalled for this, including
kdelibs4-dev and kde-sdk.
I am worried to get my complete system down due to this 
package, therefore I think, it will be not possible,
to write that gimp script.

What do you think?

Thanks, eleonora




On Tue, 2008-10-14 at 07:54 +0200, ge wrote:

 1. select image part using rectangle, ctrl c for put into clipboard
 2. insert as new picture (menu, second from left)
 3. ctrl-s  (save as gif, enter name: name.gif )
 4. answer export with yes
 5. answer save as gif with yes.

Why don't you write yourself a simple script that does steps 2 to 5 and
only asks for the filename? Should be doable in a few lines of Python or
Script-Fu.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-16 Thread Simon Budig
ge ([EMAIL PROTECTED]) wrote:
 I asked synaptic, to install it; synaptic says, at least 40 packages
 had to be deinstalled and reinstalled for this, including
 kdelibs4-dev and kde-sdk.

Ok, that seems a bit messed up - installing libgimp-dev should be
painless, but maybe there are some odd version mismatches or whatever.

You're probably right in not trying to install libgimp-dev if it has
these consequences. Maybe ask in a forum for your distribution what
should be done there...

 According to documentation gimptool is required for 
 adding gimp scripts.

It is not required, it has a convenience function for script-fu scripts.
You can as well just copy your script-fu-script to ~/.gimp-2.x/scripts/ .

Have fun,
Simon

-- 
  [EMAIL PROTECTED]  http://simon.budig.de/
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-16 Thread ge
Thanks, Simon.

I'll try to replace gimptool by some self written script.

THanks, eleonora


ge ([EMAIL PROTECTED]) wrote:
 I asked synaptic, to install it; synaptic says, at least 40 packages
 had to be deinstalled and reinstalled for this, including
 kdelibs4-dev and kde-sdk.

Ok, that seems a bit messed up - installing libgimp-dev should be
painless, but maybe there are some odd version mismatches or whatever.

You're probably right in not trying to install libgimp-dev if it has
these consequences. Maybe ask in a forum for your distribution what
should be done there...

 According to documentation gimptool is required for
 adding gimp scripts.

It is not required, it has a convenience function for script-fu scripts.
You can as well just copy your script-fu-script to ~/.gimp-2.x/scripts/ .
 Simon

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-14 Thread Sven Neumann
Hi,

On Tue, 2008-10-14 at 07:54 +0200, ge wrote:

 1. select image part using rectangle, ctrl c for put into clipboard
 2. insert as new picture (menu, second from left)
 3. ctrl-s  (save as gif, enter name: name.gif )
 4. answer export with yes
 5. answer save as gif with yes.

Why don't you write yourself a simple script that does steps 2 to 5 and
only asks for the filename? Should be doable in a few lines of Python or
Script-Fu.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] export and save as gif dialogs

2008-10-14 Thread ge
Sven,

Thanks for the tip. I'll try to write such a script;
I have absolutely no experience with that, but hopefully
I'll be able to write that.

THanks, eleonora

Hi,

On Tue, 2008-10-14 at 07:54 +0200, ge wrote:

 1. select image part using rectangle, ctrl c for put into clipboard
 2. insert as new picture (menu, second from left)
 3. ctrl-s  (save as gif, enter name: name.gif )
 4. answer export with yes
 5. answer save as gif with yes.

Why don't you write yourself a simple script that does steps 2 to 5 and
only asks for the filename? Should be doable in a few lines of Python or
Script-Fu.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] export and save as gif dialogs

2008-10-13 Thread ge
Hi,

I have to save parts of images.

I do: 
1. select image part using rectangle, ctrl c for put into clipboard
2. insert as new picture (menu, second from left)
3. ctrl-s  (save as gif, enter name: name.gif )
4. answer export with yes
5. answer save as gif with yes.

Since I have to save hundreds of picture parts as
new pictures, it is really cumbersome and senseless for me 
to answer  the  export and save as gif questions (4 and 5) 
every time.
Is there a way to configure gimp in order to avoid 
those two queries?

Any idea to simplify the procedure is welcome.

Thanks, eleonora

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user