Bug 429505

Summary: Images are not copied from dolphin to gimp
Product: [Unmaintained] klipper Reporter: chameleon <h.m.chameleon>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: michal.zubkowicz, nate
Priority: NOR    
Version First Reported In: 5.20.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: how to reproduce

Description chameleon 2020-11-22 14:10:01 UTC
Created attachment 133564 [details]
how to reproduce

SUMMARY
Images are not copied from dolphin to gimp

STEPS TO REPRODUCE
1. select any image and copy it (ctrl+c or mouse) in dolphin
2. try to paste it into gimp

OBSERVED RESULT
GIMP Message: There is no image data in the clipboard to paste.

EXPECTED RESULT
image should be inserted

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 33 and openSUSE Tumbleweed
KDE Plasma Version: 5.20.3 (5.19.5 on Fedora)
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Noticed that prtsc and copy to clippboard work in this case, but meta + shift + prtsc and copy don't work. Drag-n-drop from dolphin to gimp is working

PS Please excuse me for my english
Comment 1 Christoph Feck 2020-12-21 23:07:23 UTC
Does it work from other file managers?
Comment 2 Michał Zubkowicz 2021-03-09 08:25:03 UTC
(In reply to Christoph Feck from comment #1)
> Does it work from other file managers?

I think it's not related to file manager. The whole image + clipboard functionality is working not in a way that I used to in other desktop environments / operating systems and it's unusable for some workflows. 

For example
1) I should be able to copy file from Dolphin, paste in browser as image
2) I should be able to copy image from Gimp, paste in browser
3) I should be able to copy from browser and paste in Gimp
4) I should be able to copy file from Dolphin and paste in LibreOffice (this part is worse because in libreoffice is pasted binary content of image file). 
5) I should be able to screenshot and paste image in Gimp or browser. 

Nothing of it is working and it's quite popular workflow and especially important for beginners who often are trying to naturally to paste images everywhere and in KDE they are pasting instead "file://smile.jpg" instead of image.
Comment 3 Michał Zubkowicz 2021-03-09 08:28:27 UTC
I've tried also to uncheck "Ignore images" or change other settings in clipboard configuration without success.
Comment 4 Nate Graham 2021-04-01 20:43:15 UTC
This is actually a bug in GIMP.

When you copy an image in Dolphin (or any other file manager) you're not actually copying the image itself, but rather a representation of the file itself. GIMP knows how to handle image data on the clipboard, and it knows how to handle files that are dragged into its main content area but does not know how to handle files on the clipboard. You should report this  to GIMP's developers.

Kolourpaint is smart enough to know how to do this, though. ;)
Comment 5 Michał Zubkowicz 2021-04-01 21:29:30 UTC
OK, maybe one of issues is Gimp fault. But what about Libre Office, browsers etc?
Comment 6 Nate Graham 2021-04-01 22:17:51 UTC
Works in LibreOffice when I tested it just now. So as you can see, it's up to individual apps to handle this case, and some already do.
Comment 7 Michał Zubkowicz 2021-04-01 22:27:36 UTC
Thanks for response. It's strange, that now it's working for me also. I've never seen problems with clipboard like that, but for sure it's not related to Gimp only. Anyway I'll open new issue when I will have more reproducible case.