RSS/Atom feed Twitter
Site is read-only, email is disabled

Create image from clipboard via command line

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Create image from clipboard via command line Piotr Rybałtowski 13 Mar 13:31
  Create image from clipboard via command line Kevin Brubeck Unhammer 13 Mar 15:14
   Create image from clipboard via command line Piotr Rybałtowski 13 Mar 17:04
    Create image from clipboard via command line Kevin Brubeck Unhammer 14 Mar 07:10
     Create image from clipboard via command line Piotr Rybałtowski 14 Mar 08:22
Piotr Rybałtowski
2013-03-13 13:31:01 UTC (about 12 years ago)

Create image from clipboard via command line

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

Kevin Brubeck Unhammer
2013-03-13 15:14:14 UTC (about 12 years ago)

Create image from clipboard via command line

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
Piotr Rybałtowski
2013-03-13 17:04:22 UTC (about 12 years ago)

Create image from clipboard via command line

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

Kevin Brubeck Unhammer
2013-03-14 07:10:38 UTC (about 12 years ago)

Create image from clipboard via command line

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
Piotr Rybałtowski
2013-03-14 08:22:18 UTC (about 12 years ago)

Create image from clipboard via command line

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