Re: [Gimp-user] Easily copying selections to a file?

2008-11-13 Thread David Herman
On Thursday 13 November 2008, 
[EMAIL PROTECTED] wrote:
-snip--

 The script has been tested with GIMP 2.6.2 and I suspect it
 should work with GIMP 2.4 (I doubt it will work with earlier
 GIMPs). The script can be downloaded from
 http://flashingtwelve.brickfilms.com/GIMP/Scripts/save-selected.s
cm

Thanks for the script, should be useful.

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


Re: [Gimp-user] Easily copying selections to a file?

2008-11-11 Thread Joao S. O. Bueno
On Tue 11 Nov 2008 03:00:11 am David Gowers wrote:
 On Tue, Nov 11, 2008 at 6:55 AM, Joshua McGee [EMAIL PROTECTED] wrote:
  Hello,
 
  I sell postage stamps.  For inventory photos, I scan whole stocksheets
  (black backing, acetate strips to hold the stamps) with the stamps in
  place, then use GIMP to cut out the individual stamps for listing.
 
  Right now, I draw a rectangular selection around each stamp, then CTRL-C,
  CTRL-SHIFT-V, CTRL-SHIFT-S, type a name.  I can do this pretty quickly,
  but my wrists would thank me if there were a way to bind this series of
  keypresses to one keystroke, or to have a sort of Copy to like the old
  Windows Paint program had.
 
  Sorry if this is a ridiculously easy question.

 Alec's idea is pretty elegant. My ideas are below.

 On Linux, you can use xDoTool for this; You would basically create a
 noninteractive Python plugin which runs the following command using
 os.system():

David --

I fail to perceive in which ay this could be any better than a plug-in that 
simply does the copy, paste as new, save in first place, without loopback 
keyboard input hacks.

As for Joshua - just e-mail me confirming you can run python plug-ins, and 
re-state your need , and I can make such a script in little time.

Just --- have you tried simply reassing the shortcuts?
You can enable dynamic keyboard shortcuts in preferences-interface (and 
also, turn of mnmonics, so you can have single letter shortcuts, instead of 
ctrl+shift+alt+ KEY things).

Maybe if you have C copy, V, paste  as new, and B save as you are better 
of then with any script we could think of.

(and you donį¹« need to save these shortcuts - iwtih dynamic shrotcuts on, you 
can simply assign  then each time you are slicing a sheet of stamps, and have 
the defaut shortcuts load at the next gimp restart)

  js
  --





 xdotool key Ctrl+C Ctrl+Shift+V Ctrl+Shift+S

 If, for example, you always saves PNGs, you might want to add to that:

 xdotool key Ctrl+C Ctrl+Shift+V Ctrl+Shift+S Delete period p n g Home

 so, delete whatever filename is already in the File field, type '.png'
 and return to the start of the line.

 On Windows, you may be able to use AutoIt in a similar way.


 Alternatively you could use GIMP's pdb calls to accomplish this,
 something like this:

 pdb.gimp_edit_copy (drawable)
 newimage = pdb.gimp_edit_paste_as_new ()
 filename = filename
 pdb.gimp_file_save (newimage, drawable,  filename, filename)

 where filename is a parameter that you can choose via the PythonFu
 automatic GUI.


 I have no idea what the old Windows Paint did.


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


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


Re: [Gimp-user] Easily copying selections to a file?

2008-11-11 Thread David Gowers
On Tue, Nov 11, 2008 at 10:46 PM, Joao S. O. Bueno [EMAIL PROTECTED] wrote:
 On Tue 11 Nov 2008 03:00:11 am David Gowers wrote:
 On Tue, Nov 11, 2008 at 6:55 AM, Joshua McGee [EMAIL PROTECTED] wrote:
  Hello,
 
  I sell postage stamps.  For inventory photos, I scan whole stocksheets
  (black backing, acetate strips to hold the stamps) with the stamps in
  place, then use GIMP to cut out the individual stamps for listing.
 
  Right now, I draw a rectangular selection around each stamp, then CTRL-C,
  CTRL-SHIFT-V, CTRL-SHIFT-S, type a name.  I can do this pretty quickly,
  but my wrists would thank me if there were a way to bind this series of
  keypresses to one keystroke, or to have a sort of Copy to like the old
  Windows Paint program had.
 
  Sorry if this is a ridiculously easy question.

 Alec's idea is pretty elegant. My ideas are below.

 On Linux, you can use xDoTool for this; You would basically create a
 noninteractive Python plugin which runs the following command using
 os.system():

 David --

 I fail to perceive in which ay this could be any better than a plug-in that
 simply does the copy, paste as new, save in first place, without loopback
 keyboard input hacks.
Then you have succeeded. Alternatively, you could pay attention to the
difference in workflow.

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


[Gimp-user] Easily copying selections to a file?

2008-11-10 Thread Joshua McGee
Hello,

I sell postage stamps.  For inventory photos, I scan whole stocksheets
(black backing, acetate strips to hold the stamps) with the stamps in place,
then use GIMP to cut out the individual stamps for listing.

Right now, I draw a rectangular selection around each stamp, then CTRL-C,
CTRL-SHIFT-V, CTRL-SHIFT-S, type a name.  I can do this pretty quickly, but
my wrists would thank me if there were a way to bind this series of
keypresses to one keystroke, or to have a sort of Copy to like the old
Windows Paint program had.

Sorry if this is a ridiculously easy question.

Joshua McGee
http://www.mcgees.org
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Easily copying selections to a file?

2008-11-10 Thread Alec Burgess


Joshua McGee ([EMAIL PROTECTED]) wrote (in part)  (on 2008-11-10 at
15:25):

 I sell postage stamps.  For inventory photos, I scan whole
 stocksheets (black backing, acetate strips to hold the stamps) with
 the stamps in place, then use GIMP to cut out the individual stamps
 for listing.

 Right now, I draw a rectangular selection around each stamp, then
 CTRL-C, CTRL-SHIFT-V, CTRL-SHIFT-S, type a name.  I can do this
 pretty quickly, but my wrists would thank me if there were a way to
 bind this series of keypresses to one keystroke, or to have a sort of
 Copy to like the old Windows Paint program had.

 Sorry if this is a ridiculously easy question.


see Guillotine - http://docs.gimp.org/en/plug-in-guillotine.html

draw guides to separate individual stamps as desired then use: 
image/Transform/Guillotine to create individual images


Having done that you will probably want to save all created images.

Saul Goode wrote script-fu-save-all-images see: 
http://www.nabble.com/Save-all-opened-files-with-ONE-click,-or-with-script...-td13893653.html

I don't think this has an official home anywhere?

--
Regards ... Alec   ([EMAIL PROTECTED]  WinLiveMess - [EMAIL PROTECTED])


create individual imagesbr
br
Having done that you will probably want to save all created images. br
br
Saul Goode wrote script-fu-save-all-images see:
http://www.nabble.com/Save-all-opened-files-with-ONE-click,-or-with-script...-td13893653.htmlbr
I don't think this has an official home anywhere?br
pre class=moz-signature cols=72-- 
Regards ... Alec   ([EMAIL PROTECTED] amp; WinLiveMess - [EMAIL PROTECTED])/pre

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


Re: [Gimp-user] Easily copying selections to a file?

2008-11-10 Thread David Gowers
On Tue, Nov 11, 2008 at 6:55 AM, Joshua McGee [EMAIL PROTECTED] wrote:
 Hello,

 I sell postage stamps.  For inventory photos, I scan whole stocksheets
 (black backing, acetate strips to hold the stamps) with the stamps in place,
 then use GIMP to cut out the individual stamps for listing.

 Right now, I draw a rectangular selection around each stamp, then CTRL-C,
 CTRL-SHIFT-V, CTRL-SHIFT-S, type a name.  I can do this pretty quickly, but
 my wrists would thank me if there were a way to bind this series of
 keypresses to one keystroke, or to have a sort of Copy to like the old
 Windows Paint program had.

 Sorry if this is a ridiculously easy question.

Alec's idea is pretty elegant. My ideas are below.

On Linux, you can use xDoTool for this; You would basically create a
noninteractive Python plugin which runs the following command using
os.system():

xdotool key Ctrl+C Ctrl+Shift+V Ctrl+Shift+S

If, for example, you always saves PNGs, you might want to add to that:

xdotool key Ctrl+C Ctrl+Shift+V Ctrl+Shift+S Delete period p n g Home

so, delete whatever filename is already in the File field, type '.png'
and return to the start of the line.

On Windows, you may be able to use AutoIt in a similar way.


Alternatively you could use GIMP's pdb calls to accomplish this,
something like this:

pdb.gimp_edit_copy (drawable)
newimage = pdb.gimp_edit_paste_as_new ()
filename = filename
pdb.gimp_file_save (newimage, drawable,  filename, filename)

where filename is a parameter that you can choose via the PythonFu
automatic GUI.


I have no idea what the old Windows Paint did.


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