Re: [Gimp-user] Create image from clipboard via command line

2013-03-14 Thread Piotr Rybałtowski
On Thu, Mar 14, 2013 at 8:10 AM, Kevin Brubeck Unhammer
wrote:

> Piotr Rybałtowski  writes:
>
> > Kevin, I know about pasting when I have it opened. After taking a
> > screenshot I'm running GIMP and pressing ctrl+shift+v. I'd be much
> > better though if I could be able to run it as a single command so I
> > could make even better shortcut.
> >
> > Saving clipboard to a file is not for me. I want to have it opened as
> > new image.
>
> Well, if you don't mind the file ending up in your /tmp, you could save
> the python script as e.g. "save-clipboard-image.py" and make another
> script "save-clipboard-image-tmp.sh" that does
>
>
>
I will try with shell/python scripts as well as script-fu.

Thanks.





>
>
> > On Wed, Mar 13, 2013 at 4:14 PM, Kevin Brubeck Unhammer
> >  wrote:
>
> [...]
>
> > (Or you can try this python2-script
> > http://stackoverflow.com/a/12122028/69663 which takes any image in
> > your
> > clipboard, run it with the "-o" option to open the file straight
> > away.)
>
>
> --
> Kevin Brubeck Unhammer
>
> GPG: 0x766AC60C
>
> ___
> gimp-user-list mailing list
> gimp-user-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gimp-user-list
>
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] Create image from clipboard via command line

2013-03-14 Thread Kevin Brubeck Unhammer
Piotr Rybałtowski  writes:

[...]

> Kevin, I know about pasting when I have it opened. After taking a
> screenshot I'm running GIMP and pressing ctrl+shift+v. I'd be much
> better though if I could be able to run it as a single command so I
> could make even better shortcut.
>
> Saving clipboard to a file is not for me. I want to have it opened as
> new image.

Well, if you don't mind the file ending up in your /tmp, you could save
the python script as e.g. "save-clipboard-image.py" and make another
script "save-clipboard-image-tmp.sh" that does


#!/bin/sh
cd /tmp
/path/to/save-clipboard-image.py -o


You might want to change "xdg-open" to "gimp" in the script in case it
opens in the wrong program.

Then just make a shortcut to "save-clipboard-image-tmp.sh" from
wherever (remember to chmod +x them).

> On Wed, Mar 13, 2013 at 4:14 PM, Kevin Brubeck Unhammer
>  wrote:

[...]

> (Or you can try this python2-script
> http://stackoverflow.com/a/12122028/69663 which takes any image in
> your
> clipboard, run it with the "-o" option to open the file straight
> away.)


-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C

___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] Create image from clipboard via command line

2013-03-13 Thread Piotr Rybałtowski
Hi,

Mikel, there are more apps taking screenshots to a clipboard than opening
them in GIMP so it'd be useful :). I use ScreenCloud.

Kevin, I know about pasting when I have it opened. After taking a
screenshot I'm running GIMP and pressing ctrl+shift+v. I'd be much better
though if I could be able to run it as a single command so I could make
even better shortcut.

Saving clipboard to a file is not for me. I want to have it opened as new
image.

For now I'll just stick with Open GIMP > Ctrl+Shift+V.

Thanks,
Piotrek



On Wed, Mar 13, 2013 at 4:14 PM, Kevin Brubeck Unhammer
wrote:

> Piotr Rybałtowski  writes:
>
> > Hi,
> >
> > I'm thinking about some new feature which I'd love to see in GIMP but
> > can't add it myself. Maybe there's a way to achieve it. And if it's
> > wrong place to post such suggestions let me know, this is my first
> > mail here.
> >
> > To the point. I'd love to be able to create new image from clipboard
> > from a command line. There is such function so I guess it wouldn't be
> > a problem to add it. Having this one could make a shortcut (e.g. in
> > Unity's launcher RMB menu). It's useful when some app (e.g. screenshot
> > taking) puts image in clipboard and you want to quickly edit it.
> >
> > What do you think?
>
> If you've got GIMP running, just press Ctrl+Shift+V (or Edit→Paste from
> clipboard) and it'll create a new image from the current clipboard. You
> can probably whip up some script-fu to call that from the command-line
> if you prefer.
>
> (Or you can try this python2-script
> http://stackoverflow.com/a/12122028/69663 which takes any image in your
> clipboard, run it with the "-o" option to open the file straight away.)
>
>
> --
> Kevin Brubeck Unhammer
>
> http://turl.ca/interleave_your_email
>
> ___
> gimp-user-list mailing list
> gimp-user-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gimp-user-list
>
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] Create image from clipboard via command line

2013-03-13 Thread Kevin Brubeck Unhammer
Piotr Rybałtowski  writes:

> Hi,
>
> I'm thinking about some new feature which I'd love to see in GIMP but
> can't add it myself. Maybe there's a way to achieve it. And if it's
> wrong place to post such suggestions let me know, this is my first
> mail here.
>
> To the point. I'd love to be able to create new image from clipboard
> from a command line. There is such function so I guess it wouldn't be
> a problem to add it. Having this one could make a shortcut (e.g. in
> Unity's launcher RMB menu). It's useful when some app (e.g. screenshot
> taking) puts image in clipboard and you want to quickly edit it.
>
> What do you think?

If you've got GIMP running, just press Ctrl+Shift+V (or Edit→Paste from
clipboard) and it'll create a new image from the current clipboard. You
can probably whip up some script-fu to call that from the command-line
if you prefer.

(Or you can try this python2-script
http://stackoverflow.com/a/12122028/69663 which takes any image in your
clipboard, run it with the "-o" option to open the file straight away.)


-- 
Kevin Brubeck Unhammer

http://turl.ca/interleave_your_email

___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] Create image from clipboard via command line

2013-03-13 Thread Mikel Garai
Hi Piotr,

I don't know about other applications, but xfce4-screenshooter does give
you the option of editing the capture on the GIMP.

Best Regards,

 -mIKEL

El 13/03/13 14:31, Piotr Ryba?towski escribió:
> Hi,
>
> I'm thinking about some new feature which I'd love to see in GIMP but
> can't add it myself. Maybe there's a way to achieve it. And if it's
> wrong place to post such suggestions let me know, this is my first
> mail here.
>
> To the point. I'd love to be able to create new image from clipboard
> from a command line. There is such function so I guess it wouldn't be
> a problem to add it. Having this one could make a shortcut (e.g. in
> Unity's launcher RMB menu). It's useful when some app (e.g. screenshot
> taking) puts image in clipboard and you want to quickly edit it.
>
> What do you think?
>
> Thanks,
> Piotrek
>
>
>
> ___
> gimp-user-list mailing list
> gimp-user-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gimp-user-list
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] Create image from clipboard via command line

2013-03-13 Thread Piotr Rybałtowski
Hi,

I'm thinking about some new feature which I'd love to see in GIMP but can't
add it myself. Maybe there's a way to achieve it. And if it's wrong place
to post such suggestions let me know, this is my first mail here.

To the point. I'd love to be able to create new image from clipboard from a
command line. There is such function so I guess it wouldn't be a problem to
add it. Having this one could make a shortcut (e.g. in Unity's launcher RMB
menu). It's useful when some app (e.g. screenshot taking) puts image in
clipboard and you want to quickly edit it.

What do you think?

Thanks,
Piotrek
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list