Skip to main content
Bumped by Community user
Bumped by Community user
Added 2 Tags
Link
wch1zpink
  • 7.7k
  • 17
  • 35
Source Link
simone
  • 571
  • 7
  • 16

Putting an image into the clipboard via stdin

I know I can take image content from the clipboard and pipe into STDOUT like this:

osascript -e "get the clipboard as «class PNGf»" | sed "s/«data PNGf//; s/»//" | xxd -r -p

Is there a way to do the opposite? in other words to put an image into the clipboard via pipes?