[Gimp-user] Size of "new" picture after selection gimp 2.2 vs. 2.3

2007-02-13 Thread eleonora46
Dear All,

In gimp 2.2 when I selected a rectangle, and after that selected a new picture 
using ctrl-n, the size of the new picture was the the size of the selected 
triangle, which was very handy.

In gimp 2.3, the size of the new picture is fixed, and is not related to the 
selected rectangle; this forces the user to find out the rectangle's size, and 
set up the right size manually, which is clearly a step backwards. Will this be 
improved (as it was in 2.2) in a new version?

-eleonora
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Size of "new" picture after selection gimp 2.2 vs. 2.3

2007-02-13 Thread eleonora46

Thanks, edit->paste as->new image works well.

-eleonora


Betreff: Re: [Gimp-user] Size of "new" picture after selection gimp 2.2 vs. 
2.3

> Von: [EMAIL PROTECTED]
> 
> > In gimp 2.3, the size of the new picture is fixed, and is not related to
> > the selected rectangle; this forces the user to find out the rectangle's
> > size, and set up the right size manually, which is clearly a step
> backwards.
> > Will this be improved (as it was in 2.2) in a new version?
> 
> No. The behavior of File->Open is intentional, the old "come up with old
> values" was not obvious to many users because they didn't reagrd copying as
> something that could alter the default values.
> 
> Creating a new image from the content of the clipboard has become more
> straight-forward in GIMP 2.3, actually. Use "File->Acquire->Paste as New" or
> "Edit->Paste as->New Image" to get there in one step.
> 
> 
> HTH,
> Michael

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Color of pencil and eraser (rubber gum)

2007-02-19 Thread eleonora46
Dear List,

I'd like to have my eraser and my pencil to be white.

At present my eraser is sometimes white, sometimes gray,
my pencil is black, and after I select color chooser to white
it turns white.

How to set them permanently to a certain color?
Thanks, eleonora 
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
___
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"
"/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 

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 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"
	"/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 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 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-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 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