0

Suppose I have an image on the desktop,

    $ ls
    1.png

I'd like to copy it to the clipboard,and tried

    $ pbcopy 1.png

    ^C

I should terminate the process manually.

How to copy image to clipboard, so I can paste them around?

AbstProcDo
  • 19,953
  • 19
  • 81
  • 138

1 Answers1

1

Install xclip

sudo apt-get install xclip

Use -t to specify format

xclip -selection clipboard -t image/png -i 1.png
Flo
  • 2,699
  • 4
  • 24
  • 46