Current use case:
- I select "copy image" on some random png in safari.
- I type pbpaste into terminal, and get the link to the image.
Is there anyway to get the binary data instead?
When you copy an image, OS X actually doesn't copy just the raw image data. In fact, there exist multiple pasteboards in Cocoa, in which there are multiple representations of your image.
Your only options with
Since plain text data is available as the image's URL, you'll always paste that, no matter what.
And just for completeness, here's the URL stored for an image, for example:
Screenshot taken with Pasteboard Inspector.
You could try opening image in a hex editor to access the raw file, I've used Hex Fiend on my mac and it does the job.