I am used to use xclip
to copy/paste png files into libreoffice writer.
The command I use is:
xclip -selection clipboard -t "image/png" -i <path_to_file>
Now, I want to copy/paste svg images, but I cannot figure out what is the appropriate "target" option.
I have tried many different -t arguments, for example:
xclip -selection clipboard -t "image/svg" -i <path_to_file>
xclip -selection clipboard -t "image/svg+xml" -i <path_to_file>
xclip -selection clipboard -t 'application/x-openoffice-drawing;windows_formatname="Drawing Format"' -i <path_to_file>
It almost worked with the following commands, but the image is pasted in a raster format rather than svg:
xclip -selection clipboard -t 'application/x-openoffice-emf;windows_formatname="Image EMF"' -i <path_to_file>
xclip -selection clipboard -t 'application/x-openoffice-wmf;windows_formatname="Image WMF"' -i <path_to_file>
I can copy/paste svg files to libreoffice write using ctrl+c/ctrl+v, but I would like to do it via command line, preferably by using xclip
. Is there a way to do it? Any help is appreciated.
By the way, I'm on Ubuntu 18.04 and I'm using xclip version 0.12.