瀏覽代碼

xclip: add PNG image copying example (#3073)

Hugo Locurcio 5 年之前
父節點
當前提交
aeef500f4a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/linux/xclip.md

+ 4 - 0
pages/linux/xclip.md

@@ -19,6 +19,10 @@
 
 `xclip -sel clip {{input_file.txt}}`
 
+- Copy the contents of a PNG image into the system clipboard (can be pasted in other programs correctly):
+
+`xclip -sel clip -t image/png {{input_file.png}}`
+
 - Paste the contents of the X11 primary selection area to the console:
 
 `xclip -o`