I am used to simply COPY (Ctrl+C) an image file from the file manager and past it into a document (Slack, Google Docs etc), this is standard feature on Windows and macOS.
However on Ubuntu 18.04 and Nautilus (File 3.26.4) it copies a path like this: /home/petrvecera/Pictures/Wallpapers/tumblr_nfet2oaZ3P1tbxz68o1_1280.jpg
instead of the file…
How to copy image file and not the path?
I know that I can use drag and drop but that is not as effective as simple copy and is pain to re-arrange windows. I have found this plugin https://www.maketecheasier.com/copy-paste-images-clipboard-nautilus/ however it just adds "feature" into the menu.
Best Answer
what I do, and I know this may seem slow but it's the "get it done approach", is I open the image in www.photopea.com or a locally installed editing app such as pinta or gimp.
Pinta : pinta
Gimp : gimp
Hit Ctrl+A, then Ctrl+C then I have it ready to paste as an image.
the plugin you mention is of 2016 and must have broken down in ubuntu 18+. you might have to signal a bug then wait for a new verison to come out or for another plugin to come out.
Xclip could get you what you wish in the meantime in a terminal-based approach :
xclip
NOTE: Some research shows that you need xclip from SVN revision 81 (from April 2010) or later to have the required
-t
option. Or apply the patches yourself.sources :