Search code examples
macosclipboard

Binary (image) data clipboard in macOS


When I copy things to the clipboard, I can dump them into my console window or redirect to a file using:

pbpaste > out.txt

But if I right click an image and copy it in a browser, then attempt:

pbpaste > out.jpg

Nothing is outputted.

Where does macOS store the image data in the clipboard? Is there some way to access it from the commandline, similarly to pbpaste?


Solution

  • In response to a question from Jeff a utility was written to let you paste graphics to a PNG.