BASH/Dash : how to put a JPEG or PNG into the Clipboard?
Hi,
I would like to copy a jpeg or a png and place it into the clipboard of X11 of my icewm. any ideas which program can do cat "myfile.jpg" > ?theclipboardofx11?? |
|
AFAIK xclip only works with text but it would be nice to be wrong. From the xclip man page:
Code:
DESCRIPTION |
Quote:
|
There is an app called mtpaint, which has this to say about copying images to the clipboard using mtpaint:
Quote:
|
Quote:
When you copy (Ctrl+C) a JPEG or PNG file in Thunar (Xfce's file manager) and then paste into a text document the pasted text is a URL, for example file:///home/c/d/Pictographic/IMG_1368.jpg Does mtpaint copy to the clipboard or to file? Screenshot, a similar app, either copies to file or opens in an editor (via a file). X Window selections can contain images but goes on to describe copying only text. There is more in the Inter-Client Communication Conventions Manual. |
Quote:
Code:
key "Print" ' mtpaint -s & killall -e mtpaint ' Quote:
|
Quote:
ctrl + c then into gmail ctrl +v then image is paste like vista linux is better than vista, sure we camn do such simple thing ...:) |
Where (while running which application) do you want to do the Ctrl+C?
|
Quote:
|
Quote:
In X as in Windows you can do this using the mouse. Keep in mind that different window managers have different capabilities. If you want a lot of fancy functions then you may need to use a fancy window manager/desktop environment such as Gnome or KDE. |
All times are GMT -5. The time now is 06:56 PM. |