abo-abo / org-download

Drag and drop images to Emacs org-mode
1.09k stars 79 forks source link

cannot download from clipboard correctly #153

Open wang1zhen opened 3 years ago

wang1zhen commented 3 years ago

I've tried to reproduce the issue with minimal configs, here is my .emacs file

(require 'org-download)

(add-hook 'dired-mode-hook 'org-download-enable)

When I try to attach an image into my org file, the image goes blank, see the gif below

1

and automatically attached image file is also unreadable

图片

The same thing happens if I take a screenshot and paste it directly from the clipboard:

2

I guess that the interaction with the system clipboard might be incorrect, yet I have no idea why it happens. Would you please have a look at the issue and thanks in advance.

fenix011 commented 3 years ago

i've just done the same ...with

M - x org-download-clipboard ,

succesfully . Image gets pasted from clipboard to current emacs buffer.

FYI

NOTE : Emacs v. 27 here

wang1zhen commented 3 years ago

i've just done the same ...with

M - x org-download-clipboard ,

succesfully . Image gets pasted from clipboard to current emacs buffer.

FYI

NOTE : Emacs v. 27 here

Would you please tell me which DE are you using? I start to doubt it might be a problem with KDE Plasma.

fenix011 commented 3 years ago

I'm using XFCE Destktop here ... @wang1zhen

BTW, i just tested copy / paste from clipboard ... should do more testing / other uses

wang1zhen commented 3 years ago

update: I tried to copy images from pinta/inkscape, and then org-download-clipboard, no success, still blank pictures there. Is it a supposed behaviour?

sthysel commented 3 years ago

I have the same issue on i3 arch linux. The file that gets generated is empty.

❯ ls -all EC2/2021-06-20_11-59-50_screenshot.png
.rw-r--r-- thys thys 0 B Sun Jun 20 11:59:50 2021  EC2/2021-06-20_11-59-50_screenshot.png
jizai commented 2 years ago

+1
Also have the same issue on ubuntu 18.04