So, I tried the following
xclip -se c -t image/png -i imagefile.jpg This does indeed copy the image into clipboard, and I can paste it into gimp, or paste it into a new image file as in the following.
xclip -se c -t image/png -o > newimage.jpg But, when I try to paste image copied in this way, I can't paste it into facebook messenger or posts. Why is that? And how do I get around this?
N.B I use xfce4-screenshooter, and it has an option to save screenshot to clipboard. If I use that I can paste that image data into facebook messenger and posts. So, it must be a problem with either my process or with xclip itself. What does xfce4-screenshooter uses?