Set clipboard to image - pbcopy

前端 未结 3 773
挽巷
挽巷 2021-01-12 00:58

How do you set an image as the clipboard with pbcopy?

This doesn\'t work:

cat image.png | pbcopy
3条回答
  •  囚心锁ツ
    2021-01-12 01:51

    From the documentation:

    The input is placed in the pasteboard as ASCII data unless it begins with the Encapsulated PostScript (EPS) file header or the Rich Text Format (RTF) file header, in which case it is placed in the pasteboard as one of those data types.

    It doesn't sound like image data is supported, so it won't work.

提交回复
热议问题